mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Fix #132 from Coverity, retval could have been derefed
if a continue inside a try failed.
This commit is contained in:
		
							parent
							
								
									e04fe8c62e
								
							
						
					
					
						commit
						02104df4c8
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -2173,6 +2173,10 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) | ||||||
| 
 | 
 | ||||||
| 		case CONTINUE_LOOP: | 		case CONTINUE_LOOP: | ||||||
| 			retval = PyInt_FromLong(oparg); | 			retval = PyInt_FromLong(oparg); | ||||||
|  | 			if (!retval) { | ||||||
|  | 				x = NULL; | ||||||
|  | 				break; | ||||||
|  | 			} | ||||||
| 			why = WHY_CONTINUE; | 			why = WHY_CONTINUE; | ||||||
| 			goto fast_block_end; | 			goto fast_block_end; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neal Norwitz
						Neal Norwitz