[issue7561] Filename-taking functions in posix segfault when called with a bytearray arg.

Sebastian Hagen report at bugs.python.org
Tue Dec 22 18:49:24 CET 2009


Sebastian Hagen <sh_pybugs at memespace.net> added the comment:

Correction: "Only fixing that one will
get rid of the segfaults" ... well, for mkdir() on GNU/Linux, anyway.
POSIX.1-2008 doesn't specify what happens if you call mkdir() with a
NULL pointer, so I guess other conforming implementations might in fact
still segfault at that point - it just happens that the one I tested it
on is too nice to do that.

Either way, passing a NULL pointer to those functions is almost
certainly not a good idea.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7561>
_______________________________________


More information about the Python-bugs-list mailing list