mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
fix: FFI library access from non-built-in scripts vulnerability
This commit is contained in:
parent
63bf131631
commit
a32845d083
1 changed files with 5 additions and 0 deletions
|
|
@ -194,5 +194,10 @@ State* lua::create_state(const EnginePaths& paths, StateType stateType) {
|
||||||
}
|
}
|
||||||
pop(L);
|
pop(L);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (stateType == StateType::GENERATOR) {
|
||||||
|
pushnil(L);
|
||||||
|
setglobal(L, "ffi");
|
||||||
|
}
|
||||||
return L;
|
return L;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue