Issue 13496: Fix bisect.bisect overflow bug for large collections. · pythoncapi/cpython@a13b109 · GitHub
Skip to content

Commit a13b109

Browse files
committed
Issue 13496: Fix bisect.bisect overflow bug for large collections.
1 parent 18e3d81 commit a13b109

3 files changed

Lines changed: 18 additions & 2 deletions

File tree

Lib/test/test_bisect.py

Lines changed: 7 additions & 0 deletions

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ Core and Builtins
4343
Library
4444
-------
4545

46+
- Issue #13496: Fix potential overflow in bisect.bisect algorithm when applied
47+
to a collection of size > sys.maxsize / 2.
48+
4649
- Issue #14399: zipfile now recognizes that the archive has been modified even
4750
if only the comment is changed. In addition, the TypeError that results from
4851
trying to set a non-binary value as a comment is now now raised at the time

Modules/_bisectmodule.c

Lines changed: 8 additions & 2 deletions

0 commit comments

Comments
 (0)