diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index ef99594..b0371aa 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -542,7 +542,9 @@ eval_frame(PyFrameObject *f) #define BASIC_POP() (*--stack_pointer) #ifdef LLTRACE -#define PUSH(v) (void)(BASIC_PUSH(v), lltrace && prtrace(TOP(), "push")) +#define PUSH(v) { (void)(BASIC_PUSH(v), \ + lltrace && prtrace(TOP(), "push")); \ + assert(STACK_LEVEL() <= f->f_stacksize); } #define POP() ((void)(lltrace && prtrace(TOP(), "pop")), BASIC_POP()) #else #define PUSH(v) BASIC_PUSH(v) |