[issue35160] PyObjects initialized with PyObject_New have uninitialized pointers to set to 0x1

Benjamin Peterson report at bugs.python.org
Sun Nov 4 12:42:18 EST 2018


Benjamin Peterson <benjamin at python.org> added the comment:

PyObject_New is a low-level allocation function. It doesn't initialize anything but the type pointer and ref count. If you want a field to be NULL, set it to NULL.

----------
nosy: +benjamin.peterson
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list