]> granicus.if.org Git - python/commit
Issue #5765: Apply a hard recursion limit in the compiler
authorNick Coghlan <ncoghlan@gmail.com>
Sun, 4 Nov 2012 13:14:34 +0000 (23:14 +1000)
committerNick Coghlan <ncoghlan@gmail.com>
Sun, 4 Nov 2012 13:14:34 +0000 (23:14 +1000)
commitaab9c2b2ead7b786947c367a9cc5d9c921b9ea99
tree323a662a1f65b39e90d28f9f259bc937467691a7
parent1321edaa55a8df94e739e6ea5e9e658f2b7bfcc2
Issue #5765: Apply a hard recursion limit in the compiler

Previously, excessive nesting in expressions would blow the
stack and segfault the interpreter. Now, a hard limit based
on the configured recursion limit and a hardcoded scaling
factor is applied.
Include/symtable.h
Lib/test/crashers/compiler_recursion.py [deleted file]
Lib/test/test_compile.py
Misc/ACKS
Misc/NEWS
Python/compile.c
Python/symtable.c