New submission from STINNER Victor <[EMAIL PROTECTED]>: 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). ---------- components: Interpreter Core messages: 73817 nosy: haypo severity: normal status: open title: bytearray().count() type: crash versions: Python 2.6 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3967> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com