[issue38555] Undefined behavior in dictreviter_iternext

Serhiy Storchaka report at bugs.python.org
Tue Oct 22 05:31:18 EDT 2019


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

&DK_ENTRIES(k)[i] can be evaluated when i is -1. Getting the address before the beginning of the array is an undefined behavior in C.

----------
components: Interpreter Core
messages: 355122
nosy: inada.naoki, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Undefined behavior in dictreviter_iternext
type: behavior
versions: Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38555>
_______________________________________


More information about the Python-bugs-list mailing list