[issue26508] Infinite crash leading to DoS
pablo sacristan
report at bugs.python.org
Tue Mar 8 21:32:08 EST 2016
pablo sacristan added the comment:
New content for crash.py:
import ctypes, struct, sys, os
inner = ()
outer = (inner,)
c_outer = (ctypes.c_char * sys.getsizeof(outer)).from_address(id(outer))
inner_index = c_outer[:].find(struct.pack('P', id(inner)))
c_outer[inner_index:inner_index+struct.calcsize('P')] = struct.pack('P', id(outer))
print outer
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26508>
_______________________________________
More information about the Python-bugs-list
mailing list