2
_PyType_Lookup() returns a borrowed reference.
3
This attacks PyObject_GenericSetAttr().
5
NB. on my machine this crashes in 2.5 debug but not release.
17
def __set__(self, obj, value):
32
lst = [None] * 1000000
36
c.d = 42 # segfaults in PyMethod_New(im_func=D.__set__, im_self=d)
37
lst[i] = c.g # consume the free list of instancemethod objects