[pypy-issue] [issue1182] [cpyext] PyObject_GetIter() does not validate the iterator it returns

Stefan Behnel tracker at bugs.pypy.org
Mon Jun 18 20:42:33 CEST 2012


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

PyObject_GetIter() does not check the tp_iternext slot of the object it returns
and raises no exception if it's NULL.

I found this while trying to figure out why my extension type crashed during
iteration - PyType_Ready() had not inherited its tp_iternext slot. (filed as
issue1181)

----------
messages: 4459
nosy: pypy-issue, sbehnel
priority: bug
release: 1.9
status: unread
title: [cpyext] PyObject_GetIter() does not validate the iterator it returns

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


More information about the pypy-issue mailing list