]> granicus.if.org Git - python/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:34:08 +0000 (22:34 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Fri, 26 Sep 2008 22:34:08 +0000 (22:34 +0000)
commitfc5ea3928947152d60c3a1d1c456345a64774cf0
tree53e7293433b59bdac7f4150cfaafd2efdcdbc98e
parentda84d21a0c5fdd1da0fbc2d3638e3ee34731dd2c
#3967: Correct a crash in count() and find() methods of string-like objects.
For example:
   "".count("xxxx", sys.maxint, 0)

Reviewed by Benjamin Peterson.
Will port to 2.5 and 3.0.
Lib/test/string_tests.py
Misc/NEWS
Objects/stringlib/count.h
Objects/stringlib/find.h