Serhiy Storchaka added the comment:
And the following example results in segmentation fault.
import ctypes
class BadStruct(ctypes.Structure):
@property
def __dict__(self):
raise AttributeError
BadStruct().__setstate__({}, b'')
As for change the format given to PyArg_ParseTuple(), I think it can be done
only in master. It is better to make a separate PR for this.
----------
nosy: +serhiy.storchaka
type: behavior -> crash
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue31311>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com