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