]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF #1377897, Bus error in ast
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 11 Dec 2005 20:12:40 +0000 (20:12 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 11 Dec 2005 20:12:40 +0000 (20:12 +0000)
commitf8d403dd972a354fadc939d54dc0a1c45ffda327
tree13fd4898edc4b4ada740831a9b280320f5b00da1
parent8ad64aaacc22d68d6d93c3c12f7e67e9962de09b
SF #1377897, Bus error in ast

If a line had multiple semi-colons and ended with a semi-colon, we would
loop too many times and access a NULL node.  Exit the loop early if
there are no more children.
Lib/test/test_grammar.py
Python/ast.c