Skip to content

Commit 8808bb8

Browse files
luk3yxsfan5
authored andcommittedSep 18, 2018
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.
1 parent fa040eb commit 8808bb8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

Diff for: ‎mesecons_luacontroller/init.lua

+1
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,7 @@ local function save_memory(pos, meta, mem)
552552

553553
if (#memstring <= memsize_max) then
554554
meta:set_string("lc_memory", memstring)
555+
meta:mark_as_private("lc_memory")
555556
else
556557
print("Error: Luacontroller memory overflow. "..memsize_max.." bytes available, "
557558
..#memstring.." required. Controller overheats.")

0 commit comments

Comments
 (0)
Please sign in to comment.