Message400621
> In order to avoid undefined behavior, Python's C API should avoid all use of bit fields.
See also the PEP 620. IMO more generally, the C API should not expose structures, but provide ways to access it through getter and setter functions.
See bpo-40120 "Undefined C behavior going beyond end of struct via a [1] arrays" which is a similar issue. |
|
Date |
User |
Action |
Args |
2021-08-30 15:26:43 | vstinner | set | recipients:
+ vstinner, georg.brandl, petr.viktorin, methane, serhiy.storchaka, indygreg |
2021-08-30 15:26:43 | vstinner | set | messageid: <1630337203.54.0.025027053226.issue45025@roundup.psfhosted.org> |
2021-08-30 15:26:43 | vstinner | link | issue45025 messages |
2021-08-30 15:26:43 | vstinner | create | |
|