Lua: delete loadstring()

Fixes the vulnerability introduced in commit 52ae31efb2.

(cherry-picked from commit 6450bada57)
This commit is contained in:
Jyrki Vesterinen 2018-07-28 08:16:00 +03:00
parent 21999b1fc9
commit 8a0dc8bdd9

View file

@ -551,6 +551,8 @@ lua_kernel_base::lua_kernel_base()
lua_pushcfunction(L, intf_load);
lua_setglobal(L, "load");
lua_pushnil(L);
lua_setglobal(L, "loadstring");
cmd_log_ << "Initializing package repository...\n";
// Create the package table.