Stefan Krah <stefan-use...@bytereef.org> added the comment:

Correction: You are of course right about PyByteArray_AS_STRING(), but
with

os.mkdir(bytearray(b''))

I get the segfault in PyUnicodeUCS2_FSConverter():


(gdb) n
1638             size = PyByteArray_GET_SIZE(output);
(gdb) n
1639             data = PyByteArray_AS_STRING(output);
(gdb) p size
$2 = 0
(gdb) n
1641        if (size != strlen(data)) {
(gdb) p data
$3 = (void *) 0x0


Should perhaps PyByteArray_AS_STRING() be fixed?

----------

_______________________________________
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

Reply via email to