• Tim Peters's avatar
    Fix for bug 113934. string*n and unicode*n did no overflow checking at · 8f422461
    Tim Peters authored
    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).
    8f422461