[issue34495] excess_args asserts if args == nullptr
Serhiy Storchaka
report at bugs.python.org
Sat Aug 25 02:46:39 EDT 2018
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
object_new and object_init should not be called with args == NULL. This looks like a bug in the user code.
Even without assert(PyTuple_Check(args)) in PyTuple_GET_SIZE it dereferences the NULL pointer if args == NULL.
Unless there is a code in CPython implementation itself which calls object_new and object_init with args == NULL this issue will be closed as not a bug.
----------
nosy: +serhiy.storchaka
resolution: -> not a bug
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34495>
_______________________________________
More information about the Python-bugs-list
mailing list