[issue40120] Undefined C behavior going beyond end of struct via a [1] arrays.
STINNER Victor
report at bugs.python.org
Fri Apr 3 08:08:15 EDT 2020
STINNER Victor <vstinner at python.org> added the comment:
For me, the most sane option is to make structures opaque in the C API, and then flexible array members.
I did something similar for atomic types. First, we got tons of build isssues with various C compilers and then with C++ compilers. I moved the header to our "internal C API", so basically I removed it from the public C API. Since that time, we stopped to get bug reports about pyatomic.h :-)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40120>
_______________________________________
More information about the Python-bugs-list
mailing list