From 02104df4c8fbb1db098646d33453706d2535b51a Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 19 May 2006 06:31:23 +0000 Subject: [PATCH] Fix #132 from Coverity, retval could have been derefed if a continue inside a try failed. --- Python/ceval.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Python/ceval.c b/Python/ceval.c index d24241465a..43dcdd035a 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -2173,6 +2173,10 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) case CONTINUE_LOOP: retval = PyInt_FromLong(oparg); + if (!retval) { + x = NULL; + break; + } why = WHY_CONTINUE; goto fast_block_end; -- 2.40.0