diff options
author | Walter Dörwald <walter@livinglogic.de> | 2003-10-24 15:05:29 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2003-10-24 15:05:29 (GMT) |
commit | 218f9abe4528a91a98f93c3baddd3fa4ff90733a (patch) | |
tree | 1588b957fb91f68dfc8849e8a86c1191a113e647 /Python/bltinmodule.c | |
parent | f73fa5465dd2427d721b6934a184153db781f0cd (diff) | |
download | cpython-218f9abe4528a91a98f93c3baddd3fa4ff90733a.zip cpython-218f9abe4528a91a98f93c3baddd3fa4ff90733a.tar.gz cpython-218f9abe4528a91a98f93c3baddd3fa4ff90733a.tar.bz2 |
Backport checkin:
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.
Diffstat (limited to 'Python/bltinmodule.c')
0 files changed, 0 insertions, 0 deletions