[issue35680] [2.7] Coverity scan: Passing freed pointer "name" as an argument to "Py_BuildValue" in _bsddb module.

Serhiy Storchaka report at bugs.python.org
Mon Jan 7 12:03:23 EST 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

There is no bug here. "name" is freed only when err == EINVAL. And the RETURN_IF_ERR() macro will return from the function if err != 0. So that a freed pointer will never passed to Py_BuildValue().

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list