[issue41335] free(): invalid pointer in list_ass_item() in Python 3.7.3

Howard A. Landman report at bugs.python.org
Sun Jul 26 15:14:58 EDT 2020


Howard A. Landman <howard at riverrock.org> added the comment:

After a quick glance at the source code for the spidev library, I think it is unlikely but not impossible to be the home for the bug. It does do malloc() and free(), but only for data that is greater than 256 bytes. Short tx and rx data is kept in static local buffers. Also, these calls do not match the partial stack trace I got. There is a small amount of allocating and deallocating Python objects, however, including calls to PyList_New(), PyList_SET_ITEM(), and Py_TYPE(self)->tp_free((PyObject *)self), so it's possible that the bug is buried under one of those.

----------
nosy:  -christian.heimes, stestagg

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41335>
_______________________________________


More information about the Python-bugs-list mailing list