mirror of
https://github.com/python/cpython.git
synced 2026-05-10 06:31:43 -04:00
8f422461b4
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).