]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport checkin:
authorWalter Dörwald <walter@livinglogic.de>
Fri, 24 Oct 2003 15:05:29 +0000 (15:05 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Fri, 24 Oct 2003 15:05:29 +0000 (15:05 +0000)
commit218f9abe4528a91a98f93c3baddd3fa4ff90733a
tree1588b957fb91f68dfc8849e8a86c1191a113e647
parentf73fa5465dd2427d721b6934a184153db781f0cd
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.
Lib/test/test_codeccallbacks.py
Objects/unicodeobject.c