[issue3367] Uninitialized value read in parsetok.c

Stefan Krah report at bugs.python.org
Mon Mar 26 12:11:59 CEST 2012


Stefan Krah <stefan-usenet at bytereef.org> added the comment:

It's the line argv0 = argv[0] in sys_update_path(). The copies of
argv made in python.c aren't NULL terminated. Kristján's patch
worked around that (and fixes the problem), but I'd prefer to
make a full copy of argv in python.c.

Could one of you look at the patch? I didn't check if there are other
problems in sys_update_path() that Kristján's patch addressed.

----------
Added file: http://bugs.python.org/file25025/argv-alloc.diff

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


More information about the Python-bugs-list mailing list