gh-142554: avoid `divmod` crashes due to bad `_pylong.int_divmod` · python/cpython@2de92ab · GitHub
Skip to content

Commit 2de92ab

Browse files
committed
gh-142554: avoid divmod crashes due to bad _pylong.int_divmod
1 parent c865ab3 commit 2de92ab

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

Lib/test/test_int.py

Lines changed: 12 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix a crash in :func:`divmod` when :func:`!_pylong.int_divmod` does not
2+
return a tuple of length two exactly. Patch by Bénédikt Tran.

Objects/longobject.c

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)