Skip to content

Commit 46565bd

Browse files
committed
Sandbox escape bug fix (credits: Jesse Rusak)
1 parent b5e7080 commit 46565bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Wrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ v8::Handle<v8::Value> CPythonObject::WrapInternal(py::object obj)
968968

969969
result = v8::Date::New(isolate->GetCurrentContext(), ((double) mktime(&ts)) * 1000 + ms / 1000).ToLocalChecked();
970970
}
971-
else if (PyCFunction_Check(obj.ptr()) || PyFunction_Check(obj.ptr()) || PyMethod_Check(obj.ptr()) || PyType_CheckExact(obj.ptr()))
971+
else if (PyCFunction_Check(obj.ptr()) || PyFunction_Check(obj.ptr()) || PyMethod_Check(obj.ptr()) || PyType_Check(obj.ptr()))
972972
{
973973
v8::Handle<v8::FunctionTemplate> func_tmpl = v8::FunctionTemplate::New(isolate);
974974
py::object *object = new py::object(obj);

0 commit comments

Comments
 (0)