[pypy-issue] [issue1083] Py_buffer-related formats not really supported by cpyext's PyArg_ParseTuple

Jean-Paul Calderone tracker at bugs.pypy.org
Sun Mar 11 03:12:29 CET 2012


New submission from Jean-Paul Calderone <exarkun at twistedmatrix.com>:

Using the Py_buffer-filling formats with cpyext's PyArg_ParseTuple leads to 
random stack corruption.

Overall, I think the solution to this is to rewrite getargs.c in Python (with 
unit tests, of course).  The existing code, copied from CPython, is mega-gross, 
not nearly completely tested, and it would just be all around better if it were 
Python code instead of nasty C code.

A more complete description of the way Py_buffer-usage causes stack corruption 
is at http://bazaar.launchpad.net/~exarkun/pyopenssl/some-fixed-
segfaults/revision/173

----------
messages: 4059
nosy: calderone, pypy-issue
priority: bug
status: unread
title: Py_buffer-related formats not really supported by cpyext's PyArg_ParseTuple

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1083>
________________________________________


More information about the pypy-issue mailing list