[issue28839] _PyFunction_FastCallDict(): replace PyTuple_New() with PyMem_Malloc()

STINNER Victor report at bugs.python.org
Thu Dec 1 07:47:26 EST 2016


STINNER Victor added the comment:

Serhiy: "small_stack increases C stack consumption even for calls without keyword arguments. This is serious problem since we can't control stack overflow."

This problem is not new and is worked around by Py_EnterRecursiveCall() macro which counts the depth of the Python stack.

I didn't notice any stack overflow crash with my patch. We can reduce the "small_stack" size later if needed.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28839>
_______________________________________


More information about the Python-bugs-list mailing list