commit | 3687e8055cf740384516c596890e864ead081eba | [log] [tgz] |
---|---|---|
author | Ronald Oussoren <ronaldoussoren@mac.com> | Thu Jul 11 13:33:55 2013 +0200 |
committer | Ronald Oussoren <ronaldoussoren@mac.com> | Thu Jul 11 13:33:55 2013 +0200 |
tree | aab19a3cd7c3e824d1d3dd430577418788594441 | |
parent | f7c8584545be5b0ecbd904a4cd1889b0fb0edfb1 [diff] |
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