summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2003-10-24 15:05:29 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2003-10-24 15:05:29 (GMT)
commit218f9abe4528a91a98f93c3baddd3fa4ff90733a (patch)
tree1588b957fb91f68dfc8849e8a86c1191a113e647 /Python/bltinmodule.c
parentf73fa5465dd2427d721b6934a184153db781f0cd (diff)
downloadcpython-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