1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

decide not to overwrite tostring

tostring({}) and string.format("%s", {}) give you pointers.
(see lj_strfmt_obj)
this is not very critical, but attacks could be made harder if we change this.
the effort of overwriting is not worth it I think right now
This commit is contained in:
Desour 2025-02-22 14:13:35 +01:00
parent 439ac1d192
commit 8170fec456

View file

@ -486,8 +486,6 @@ void ScriptApiSecurity::initializeSecuritySSCSM()
// Set the environment to the one we created earlier
setLuaEnv(L, thread);
// TODO: tostring({})
}
#endif