bpo-41180: Audit code.__new__ when unmarshalling (GH-21271)

This commit is contained in:
tkmikan 2020-07-04 04:56:30 +08:00 committed by GitHub
parent b1cc6ba73a
commit d160e0f8e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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,