This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2008-09-25.21:39:31
SpamBayes Score 3.935687e-06
Marked as misclassified No
Message-id <1222378773.15.0.652876026067.issue3967@psf.upfronthosting.co.za>
In-reply-to
Content
bytes_count() doesn't check start maximum value: _adjust_indices()
should check that start is smaller than len (smaller or egal? len or
len-1?). Example:

>>> b = bytearray(3)
>>> b.count("x", 1491491034, 0)

start=1491491034 should be replaced by 3 (or 2 or 4? I don't know
bytearray enough).
History
Date User Action Args
2008-09-25 21:39:33vstinnersetrecipients: + vstinner
2008-09-25 21:39:33vstinnersetmessageid: <1222378773.15.0.652876026067.issue3967@psf.upfronthosting.co.za>
2008-09-25 21:39:32vstinnerlinkissue3967 messages
2008-09-25 21:39:32vstinnercreate