[pypy-issue] [issue1085] cpyext: PyString_AsString() returns bogus results for non-bytes input

Stefan Behnel tracker at bugs.pypy.org
Sun Mar 11 16:08:06 CET 2012


New submission from Stefan Behnel <stefan_ml at behnel.de>:

Calling PyString_AsString(Py_None) returns 0x7 for me instead of raising an
exception and returning NULL. This triggers a sure crash.

Example code is in Cython's "literal_lists.pyx" test.

----------
messages: 4062
nosy: pypy-issue, sbehnel
priority: bug
status: unread
title: cpyext: PyString_AsString() returns bogus results for non-bytes input

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


More information about the pypy-issue mailing list