From 8808bb8911bc443a8cfb71a63b1feb5abeba5b17 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Tue, 18 Sep 2018 07:47:19 +1200 Subject: [PATCH] Mark LuaController memory as private If LuaControllers handle sensitive information, hacked clients could get this information from the LuaController. Marking the memory as private fixes this and saves a small amount of bandwidth. --- mesecons_luacontroller/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mesecons_luacontroller/init.lua b/mesecons_luacontroller/init.lua index 0f8adbc..a781e6f 100644 --- a/mesecons_luacontroller/init.lua +++ b/mesecons_luacontroller/init.lua @@ -552,6 +552,7 @@ local function save_memory(pos, meta, mem) if (#memstring <= memsize_max) then meta:set_string("lc_memory", memstring) + meta:mark_as_private("lc_memory") else print("Error: Luacontroller memory overflow. "..memsize_max.." bytes available, " ..#memstring.." required. Controller overheats.")