mirror of
				https://github.com/python/cpython.git
				synced 2025-10-29 20:51:26 +00:00 
			
		
		
		
	bpo-41180: Audit code.__new__ when unmarshalling (GH-21271)
(cherry picked from commit d160e0f8e2)
Co-authored-by: tkmikan <36260601+tkmikan@users.noreply.github.com>
			
			
This commit is contained in:
		
							parent
							
								
									c1feaa5468
								
							
						
					
					
						commit
						1c776541a8
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -1371,6 +1371,12 @@ r_object(RFILE *p) | |||
|             if (lnotab == NULL) | ||||
|                 goto code_error; | ||||
| 
 | ||||
|             if (PySys_Audit("code.__new__", "OOOiiiiii", | ||||
|                             code, filename, name, argcount, posonlyargcount, | ||||
|                             kwonlyargcount, nlocals, stacksize, flags) < 0) { | ||||
|                 goto code_error; | ||||
|             } | ||||
| 
 | ||||
|             v = (PyObject *) PyCode_NewWithPosOnlyArgs( | ||||
|                             argcount, posonlyargcount, kwonlyargcount, | ||||
|                             nlocals, stacksize, flags, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Miss Islington (bot)
						Miss Islington (bot)