fix: FFI library access from non-built-in scripts vulnerability

This commit is contained in:
MihailRis 2026-02-26 00:12:19 +03:00
parent 63bf131631
commit a32845d083

View file

@ -194,5 +194,10 @@ State* lua::create_state(const EnginePaths& paths, StateType stateType) {
}
pop(L);
}
if (stateType == StateType::GENERATOR) {
pushnil(L);
setglobal(L, "ffi");
}
return L;
}