[issue22335] Python 3: Segfault instead of MemoryError when bytearray too big
Antoine Pitrou
report at bugs.python.org
Sun Nov 2 16:59:45 CET 2014
Antoine Pitrou added the comment:
Note that there are two possible crashes in debug mode:
$ ./python -c "bytearray(2**31-1)"
Erreur de segmentation
$ ./python -c "bytearray(2**31-2)"
python: Objects/obmalloc.c:1179: _PyObject_Alloc: Assertion `nelem <= ((Py_ssize_t)(((size_t)-1)>>1)) / elsize' failed.
Abandon
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22335>
_______________________________________
More information about the Python-bugs-list
mailing list