]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
#3967: Correct a crash in count() and find() methods of string-like objects.
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Fri, 26 Sep 2008 22:46:01 +0000 (22:46 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Fri, 26 Sep 2008 22:46:01 +0000 (22:46 +0000)
commitb50f9926ca1a6d9e55871979e494511db4bc9da4
treed075eb4550f9352f5704b86fb3ec425cb2f65e85
parent4235e6f1117e6b35d183bf46487261d762486b1a
#3967: Correct a crash in count() and find() methods of string-like objects.
For example:
   "".count("xxxx", sys.maxint, 0)

Backport of r66631.
Lib/test/string_tests.py
Misc/NEWS
Objects/stringlib/count.h
Objects/stringlib/find.h