fix for part of bug #453523: disable unmarshalling of code objects in
restricted execution mode.
This commit is contained in:
parent
3c0fc84b15
commit
8019913e4a
|
@ -569,7 +569,13 @@ r_object(RFILE *p)
|
|||
return v;
|
||||
|
||||
case TYPE_CODE:
|
||||
{
|
||||
if (PyEval_GetRestricted()) {
|
||||
PyErr_SetString(PyExc_RuntimeError,
|
||||
"cannot unmarshal code objects in "
|
||||
"restricted execution mode");
|
||||
return NULL;
|
||||
}
|
||||
else {
|
||||
int argcount = r_short(p);
|
||||
int nlocals = r_short(p);
|
||||
int stacksize = r_short(p);
|
||||
|
|
Loading…
Reference in New Issue