[issue3301] DoS when lo is negative in bisect.insort_right() / _left()

2008-07-10 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Fixed in 64845. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3301 ___

[issue3301] DoS when lo is negative in bisect.insort_right() / _left()

2008-07-06 Thread STINNER Victor
New submission from STINNER Victor [EMAIL PROTECTED]: import bisect; bisect.insort(range(4), -1, -1) goes into an unlimited loop. Workaround: replace negative lo value by zero. The function may raise an exception. -- components: Library (Lib) files: bisect_lo.patch keywords: patch

[issue3301] DoS when lo is negative in bisect.insort_right() / _left()

2008-07-06 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Don't think negative indices make much sense in this context. Will put in a test to raise a ValueError for negative indices. -- priority: - high ___ Python tracker [EMAIL PROTECTED]