[issue28963] Use-after-free in _asynciomodule.c
STINNER Victor
report at bugs.python.org
Wed Dec 14 03:12:58 EST 2016
STINNER Victor added the comment:
I see three options:
* avoid PyObject_RichCompareBool() which can run arbitrary Python code: this can be complicated since callbacks can be proxies, functools.partial, lambda, and other funny callable objects
* reimplement the same algorithm than the Python implementation: create a new list.
* do nothing: if you do weird things, it's your fault :-)
My favorite option is to work on a new list.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28963>
_______________________________________
More information about the Python-bugs-list
mailing list