mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Add missing check of PyDict_SetItem()'s return value in PyEval_EvalCodeEx()
CID 486647
This commit is contained in:
		
							parent
							
								
									14f5ee0a62
								
							
						
					
					
						commit
						0bd447f847
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -3333,7 +3333,9 @@ PyEval_EvalCodeEx(PyObject *_co, PyObject *globals, PyObject *locals,
 | 
			
		|||
                         keyword);
 | 
			
		||||
            goto fail;
 | 
			
		||||
        }
 | 
			
		||||
        PyDict_SetItem(kwdict, keyword, value);
 | 
			
		||||
        if (PyDict_SetItem(kwdict, keyword, value) == -1) {
 | 
			
		||||
            goto fail;
 | 
			
		||||
        }
 | 
			
		||||
        continue;
 | 
			
		||||
      kw_found:
 | 
			
		||||
        if (GETLOCAL(j) != NULL) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue