2 ms·
Apparently, the sandbox cannot enforce such a time limit. From a similar thread to the one linked from the root comment: > ..Attempts to control untrusted sc
by lioeters 6y ago
Apparently, the sandbox cannot enforce such a time limit.
From a similar thread to the one linked from the root comment:
> ..Attempts to control untrusted scripts may be in
vain. E.g. string.find, string.rep and other C functions can be abused and will either run forever or allocate unlimited amounts of memory. This is true for both Lua and LuaJIT.
> The only reasonably safe way to handle untrusted Lua scripts is to isolate them in a process context and to make use of per-process quotas/limits provided by the operating system.
Improved functions sandboxing in Lua and LuaJIT - http://lua-users.org/lists/lua-l/2011-02/msg01106.html http://lua-users.org/lists/lua-l/2011-02/msg01106.html