[New-bugs-announce] [issue35337] Check index in PyTuple_GET_ITEM/PyTuple_SET_ITEM in debug mode
STINNER Victor
report at bugs.python.org
Wed Nov 28 08:17:08 EST 2018
New submission from STINNER Victor <vstinner at redhat.com>:
I propose to add assertions to PyTuple_GET_ITEM/PyTuple_SET_ITEM in debug mode to check the index when Python is compiled in debug mode (./configure --with-pydebug).
This change is backward incompatible when PyTuple_GET_ITEM/PyTuple_SET_ITEM is used on a structseq with unnamed fields. Well, that's a bug in the user code, PyStructSequence_GET_ITEM/PyStructSequence_SET_ITEM should be used instead.
----------
components: Interpreter Core
messages: 330597
nosy: vstinner
priority: normal
severity: normal
status: open
title: Check index in PyTuple_GET_ITEM/PyTuple_SET_ITEM in debug mode
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35337>
_______________________________________
More information about the New-bugs-announce
mailing list