lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 03-Mar-17 13:19, Lorenzo Donati wrote:
Anyway the solution is easy, just enclose the io.read function in a
wrapper function that does size checking against a limit reasonable for
_your_ setup/system.

A custom allocator limiting total allocation would protect against any memory-based DoS, as far as Lua is concerned.

--
  Enrico