[Python-checkins] r52215 - python/branches/release24-maint/Python/ceval.c
andrew.kuchling
python-checkins at python.org
Fri Oct 6 21:09:36 CEST 2006
Author: andrew.kuchling
Date: Fri Oct 6 21:09:36 2006
New Revision: 52215
Modified:
python/branches/release24-maint/Python/ceval.c
Log:
[Backport r46044 | neal.norwitz]
Fix #132 from Coverity, retval could have been derefed
if a continue inside a try failed.
Modified: python/branches/release24-maint/Python/ceval.c
==============================================================================
--- python/branches/release24-maint/Python/ceval.c (original)
+++ python/branches/release24-maint/Python/ceval.c Fri Oct 6 21:09:36 2006
@@ -2142,6 +2142,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