[issue3367] Uninitialized value read in parsetok.c

Daniel Diniz report at bugs.python.org
Sun May 17 00:15:00 CEST 2009


Daniel Diniz <ajaksu at gmail.com> added the comment:

Confirmed in trunk:
~/trunk-py$ ./configure --with-pydebug --without-pymalloc && make
[...]
~/trunk-py$ valgrind --suppressions=Misc/valgrind-python.supp ./python
==29730== Memcheck, a memory error detector.
[...]
Python 2.7a0 (trunk:72608M, May 16 2009, 17:31:09)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> exec ""
==29730== Conditional jump or move depends on uninitialised value(s)
==29730==    at 0x805BF14: parsetok (parsetok.c:193)
==29730==    by 0x805BB96: PyParser_ParseStringFlagsFilenameEx
(parsetok.c:66)
==29730==    by 0x812A0D3: PyParser_ASTFromString (pythonrun.c:1434)
==29730==    by 0x8129B43: PyRun_StringFlags (pythonrun.c:1299)
==29730==    by 0x8101D37: exec_statement (ceval.c:4631)
[...]
[40389 refs]
>>>
[exit]
==29730==
==29730== Conditional jump or move depends on uninitialised value(s)
==29730==    at 0x805BF14: parsetok (parsetok.c:193)
==29730==    by 0x805BCF0: PyParser_ParseFileFlagsEx (parsetok.c:106)
==29730==    by 0x812A214: PyParser_ASTFromFile (pythonrun.c:1462)
==29730==    by 0x812829C: PyRun_InteractiveOneFlags (pythonrun.c:823)
[...]

----------
components: +Interpreter Core

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


More information about the Python-bugs-list mailing list