[Python-bugs-list] [ python-Bugs-494668 ] PUSH() should assert-fail on overflow

noreply@sourceforge.net noreply@sourceforge.net
Tue, 18 Dec 2001 09:23:52 -0800


Bugs item #494668, was opened at 2001-12-18 09:23
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=494668&group_id=5470

Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Tim Peters (tim_one)
Assigned to: Nobody/Anonymous (nobody)
Summary: PUSH() should assert-fail on overflow

Initial Comment:
ceval's PUSH macro happily writes beyond the end of 
the eval stack if not enough space has been reserved 
for it.  While there are no known instances of stack 
overflow under normal operation (it "should be" 
impossible), code objects produced by the Python 
compiler package have failed to reserve enough stack 
space, leading to the usual range of corrupted-memory 
problems.  In a debug build the PUSH macro should 
verify that stack overflow doesn't occur.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=494668&group_id=5470