mirror of
https://github.com/python/cpython.git
synced 2026-01-30 22:55:41 +00:00
all, either to see whether the # of chars fit in an int, or that the amount of memory needed fit in a size_t. Checking these is expensive, but the alternative is silently wrong answers (as in the bug report) or core dumps (which were easy to provoke using Unicode strings).