[New-bugs-announce] [issue3377] Invalid child node access in ast.c

Kristján Valur Jónsson report at bugs.python.org
Wed Jul 16 15:44:27 CEST 2008


New submission from Kristján Valur Jónsson <kristjan at ccpgames.com>:

Purify complained about reading uninitialized memory in ast.c:752 of 
two bytes which corresponds to the type field.  Looking into this, line 
750 increments i without checking that there are in fact this many 
children.
If you add the line:
assert(i < NCH(n));
after line 750 you get an assertion failure when you run 
test_keywordonlyarg in the testsuite

----------
components: Interpreter Core
messages: 69787
nosy: krisvale
severity: normal
status: open
title: Invalid child node access in ast.c
type: crash
versions: Python 3.0

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


More information about the New-bugs-announce mailing list