Issue 3377: Invalid child node access in ast.c (original) (raw)

Issue3377

Created on 2008-07-16 13:44 by kristjan.jonsson, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg69787 - (view) Author: Kristján Valur Jónsson (kristjan.jonsson) * (Python committer) Date: 2008-07-16 13:44
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
msg69887 - (view) Author: Jeremy Hylton (jhylton) (Python triager) Date: 2008-07-17 16:37
Committed revision 65064.
History
Date User Action Args
2022-04-11 14:56:36 admin set github: 47627
2008-07-17 16:37:42 jhylton set status: open -> closedmessages: +
2008-07-17 14:03:55 jhylton set assignee: jhyltonnosy: + jhylton
2008-07-16 13:44:26 kristjan.jonsson create