mirror of
https://github.com/python/cpython.git
synced 2026-08-23 01:23:03 +08:00
charmaptranslate_makespace() allocated 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.