[Python-checkins] r46044 - python/trunk/Python/ceval.c
neal.norwitz
python-checkins at python.org
Fri May 19 08:31:24 CEST 2006
Author: neal.norwitz
Date: Fri May 19 08:31:23 2006
New Revision: 46044
Modified:
python/trunk/Python/ceval.c
Log:
Fix #132 from Coverity, retval could have been derefed
if a continue inside a try failed.
Modified: python/trunk/Python/ceval.c
==============================================================================
--- python/trunk/Python/ceval.c (original)
+++ python/trunk/Python/ceval.c Fri May 19 08:31:23 2006
@@ -2173,6 +2173,10 @@
case CONTINUE_LOOP:
retval = PyInt_FromLong(oparg);
+ if (!retval) {
+ x = NULL;
+ break;
+ }
why = WHY_CONTINUE;
goto fast_block_end;
More information about the Python-checkins
mailing list