Skip to content

Commit

Permalink
Mark LuaController memory as private
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
luk3yx authored and sfan5 committed Sep 18, 2018
1 parent fa040eb commit 8808bb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mesecons_luacontroller/init.lua
Expand Up @@ -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.")
Expand Down

0 comments on commit 8808bb8

Please sign in to comment.