]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #18427: str.replace could crash the interpreter with huge strings.
authorRonald Oussoren <ronaldoussoren@mac.com>
Thu, 11 Jul 2013 11:33:55 +0000 (13:33 +0200)
committerRonald Oussoren <ronaldoussoren@mac.com>
Thu, 11 Jul 2013 11:33:55 +0000 (13:33 +0200)
commit3687e8055cf740384516c596890e864ead081eba
treeaab19a3cd7c3e824d1d3dd430577418788594441
parentf7c8584545be5b0ecbd904a4cd1889b0fb0edfb1
Issue #18427: str.replace could crash the interpreter with huge strings.

This fixes two places where 'int'  was used to represent
the size of strings, instead of 'Py_ssize_t'.

(The issue is not present in the corresponding code in the 3.x branches)

Fixes #18427
Misc/NEWS
Objects/stringobject.c