[issue40120] Undefined C behavior going beyond end of struct via a char[1].
STINNER Victor
report at bugs.python.org
Tue Mar 31 13:25:15 EDT 2020
STINNER Victor <vstinner at python.org> added the comment:
> Currently, C++ code that includes `<Python.h>` is warning-free in GCC (g++) even with `-Wpedantic`. That won't be true after this change, unless Py_LIMITED_API is defined.
By the way, the current trend is to make more and more structures opaque in the C API. See for example:
* bpo-39573: Make PyObject an opaque structure in the limited C API
* bpo-39947: Make the PyThreadState structure opaque (move it to the internal C API)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40120>
_______________________________________
More information about the Python-bugs-list
mailing list