mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	fix possibily uninitialized memory usage (closes #12474)
This commit is contained in:
		
							parent
							
								
									723585bbaf
								
							
						
					
					
						commit
						9d872e19aa
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -904,10 +904,10 @@ symtable_exit_block(struct symtable *st, void *ast) | |||
|     st->st_cur = NULL; | ||||
|     size = PyList_GET_SIZE(st->st_stack); | ||||
|     if (size) { | ||||
|         st->st_cur = (PySTEntryObject *)PyList_GET_ITEM(st->st_stack, | ||||
|                                                         size - 2); | ||||
|         if (PyList_SetSlice(st->st_stack, size - 1, size, NULL) < 0) | ||||
|             return 0; | ||||
|         if (--size) | ||||
|             st->st_cur = (PySTEntryObject *)PyList_GET_ITEM(st->st_stack, size - 1); | ||||
|     } | ||||
|     return 1; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Benjamin Peterson
						Benjamin Peterson