Stefan Krah <stefan-use...@bytereef.org> added the comment: I briefly looked at how PyByteArray_AS_STRING() is used in other places. A similar segfault can be provoked in long_new():
int(bytearray(b''), 10) Then, there are a couple of places where pointer arithmetic is used with the NULL pointer. Also, memcpy(x, NULL, 0) can occur. If I'm not mistaken, both of these work in practice but are strictly speaking undefined behavior. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7561> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com