[issue7458] crash in str.find() and str.rfind() with invalid start value

STINNER Victor report at bugs.python.org
Tue Dec 8 17:06:55 CET 2009

STINNER Victor <victor.stinner at haypocalc.com> added the comment:

sys.maxint/sys.maxsize: oops, sys.maxsize *does* exist (in Python >=
2.6), sorry. Here is a new patch using sys.maxsize.

Anyway, sys.maxsize sounds better because the integer overflow occurs
in a Py_ssize_t variable (j).

Added file: http://bugs.python.org/file15497/str_find-4.patch

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list