[issue3367] Uninitialized value read in parsetok.c
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 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>
More information about the Python-bugs-list