[issue8036] Interpreter crashes on invalid arg to spawnl on Windows
Amaury Forgeot d'Arc
report at bugs.python.org
Tue Mar 9 14:22:55 CET 2010
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
2.6 and 3.0.1 used to disable the Microsoft CRT argument error handler: they return EINVAL, but newer versions don't, and should check their arguments before calling _spawnv.
FWIW, the checks are::
pathname != NULL
*pathname != '\0'
argv != NULL
*argv != NULL
**argv != '\0'
The first and third checks are guaranteed by the implementation, but the other three should be done in posix_spawnv().
And the other calls to the various nt.spawn* functions probably suffer the same problem.
----------
nosy: +amaury.forgeotdarc
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8036>
_______________________________________
More information about the Python-bugs-list
mailing list