Commit 8019913e authored by Michael W. Hudson's avatar Michael W. Hudson

fix for part of bug #453523: disable unmarshalling of code objects in

restricted execution mode.
parent 3c0fc84b
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment