From 8170fec4565bf8d51dfdd9f7aa3da6c109a342a4 Mon Sep 17 00:00:00 2001 From: Desour Date: Sat, 22 Feb 2025 14:13:35 +0100 Subject: [PATCH] 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 --- src/script/cpp_api/s_security.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/script/cpp_api/s_security.cpp b/src/script/cpp_api/s_security.cpp index 6f3f35fae..a1d4cc9bb 100644 --- a/src/script/cpp_api/s_security.cpp +++ b/src/script/cpp_api/s_security.cpp @@ -486,8 +486,6 @@ void ScriptApiSecurity::initializeSecuritySSCSM() // Set the environment to the one we created earlier setLuaEnv(L, thread); - - // TODO: tostring({}) } #endif