[issue7458] crash in str.find() and str.rfind() with invalid start value
flox
report at bugs.python.org
Tue Dec 8 18:33:50 CET 2009
flox <laxyf at yahoo.fr> added the comment:
I reviewed the patch, and it seems partially redundant.
Actually the "find" method was not broken.
There is already a test "if (str_len < 0) return -1;" for this one.
See attached patch.
----------
Added file: http://bugs.python.org/file15501/issue7458_rfind.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7458>
_______________________________________
More information about the Python-bugs-list
mailing list