]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
PyUnicode_Substring() now accepts end bigger than string length
authorVictor Stinner <victor.stinner@haypocalc.com>
Sat, 1 Oct 2011 01:55:54 +0000 (03:55 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sat, 1 Oct 2011 01:55:54 +0000 (03:55 +0200)
commitde636f3c34f326fc7b07e4288d411be38d2a299c
tree52c625acfbd142910b574b925a21b0250de88c1f
parent9f789e7f63809302b887a5fff8e186768c6d3a16
PyUnicode_Substring() now accepts end bigger than string length

Fix also a bug: call PyUnicode_READY() before reading string length.
Objects/unicodeobject.c