• Walter Dörwald's avatar
    Backport checkin: · 218f9abe
    Walter Dörwald yazdı
    Fix a bug in the memory reallocation code of PyUnicode_TranslateCharmap().
    charmaptranslate_makespace() allocates more memory than required for the
    next replacement but didn't remember that fact, so memory size was growing
    exponentially every time a replacement string is longer that one character.
    This fixes SF bug #828737.
    218f9abe
test_codeccallbacks.py 27.2 KB