[issue7561] Filename-taking functions in posix segfault when called with a bytearray arg.
Sebastian Hagen
report at bugs.python.org
Tue Dec 22 18:19:17 CET 2009
Sebastian Hagen <sh_pybugs at memespace.net> added the comment:
Not exactly. The last part fixes the second problem, which you get for
non-zero-length bytearrays. But without the first fix, zero-length
bytearrays still lead to a crash:
Python 3.2a0 (py3k:77001M, Dec 22 2009, 18:17:08)
[GCC 4.3.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import posix
>>> posix.mkdir(bytearray(0))
Segmentation fault
That's what the rest of the patch fixes.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7561>
_______________________________________
More information about the Python-bugs-list
mailing list