Potential Integer Overflow in mark_stacks function #132771
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
There is a potential signed integer overflow in the expression:
cpython/Objects/frameobject.c
Line 1365 in 132b6bc
This occurs in the loop:
cpython/Objects/frameobject.c
Line 1329 in 132b6bc
len
is derived from aPy_SIZE
cast, and it can possibly beINT_MAX
:cpython/Objects/frameobject.c
Lines 1728 to 1730 in 132b6bc
It means that sum can theoretically exceed
INT_MAX
iflen
is near the limit, triggering undefined behavior due to signed integer overflow.Linked PRs
The text was updated successfully, but these errors were encountered: