diff options
author | Victor Stinner <vstinner@python.org> | 2023-06-28 01:45:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 01:45:57 (GMT) |
commit | 3f8483cad2f3b94600c3ecf3f0bb220bb1e61d7d (patch) | |
tree | d2a68be122484d443ab9260b2b542a9c509defe1 /Objects/bytes_methods.c | |
parent | 161012fc25910a47423bae8012398bf519a88140 (diff) | |
download | cpython-3f8483cad2f3b94600c3ecf3f0bb220bb1e61d7d.zip cpython-3f8483cad2f3b94600c3ecf3f0bb220bb1e61d7d.tar.gz cpython-3f8483cad2f3b94600c3ecf3f0bb220bb1e61d7d.tar.bz2 |
gh-106168: PyTuple_SET_ITEM() now checks the index (#106164)
PyTuple_SET_ITEM() and PyList_SET_ITEM() now check the index argument
with an assertion if Python is built in debug mode or is built with
assertions.
* list_extend() and _PyList_AppendTakeRef() now set the list size
before calling PyList_SET_ITEM().
* PyStructSequence_GetItem() and PyStructSequence_SetItem() now check
the index argument: must be lesser than REAL_SIZE(op).
* PyStructSequence_GET_ITEM() and PyStructSequence_SET_ITEM() are now
aliases to PyStructSequence_GetItem() and
PyStructSequence_SetItem().
Diffstat (limited to 'Objects/bytes_methods.c')
0 files changed, 0 insertions, 0 deletions