[issue46615] Use-after-free by mutating set during set operations
Dennis Sweeney
report at bugs.python.org
Thu Feb 3 22:12:21 EST 2022
Dennis Sweeney <sweeney.dennis650 at gmail.com> added the comment:
It looks like usages of the PyDict_Next API assume the resulting references are borrowed and so INCREF them.
Usages of set_next do not, but should.
It should hopefully be a straightforward fix of adding INCREF/DECREFs.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46615>
_______________________________________
More information about the Python-bugs-list
mailing list