From bec63ce9a17022af29d6b61614f329b4f7a5bd44 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Fri, 6 Oct 2006 19:09:36 +0000 Subject: [PATCH] [Backport r46044 | neal.norwitz] 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 a6201b44ce77..04dda2552c38 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -2142,6 +2142,10 @@ PyEval_EvalFrame(PyFrameObject *f) case CONTINUE_LOOP: retval = PyInt_FromLong(oparg); + if (!retval) { + x = NULL; + break; + } why = WHY_CONTINUE; goto fast_block_end; -- 2.47.3