-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
The arithmetic expression to * (int)sizeof(_Py_CODEUNIT)
can overflow if the number of instructions in a function exceeds MAX_INT / 2, as to
represents the instruction offset and sizeof(_Py_CODEUNIT)
is 2.
cpython/Python/instrumentation.c
Line 1239 in 4b44b34
PyObject *to_obj = PyLong_FromLong(to * (int)sizeof(_Py_CODEUNIT)); |
Linked PRs
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error