The following will freeze forever:
function main()
while 2 < 5 do
end
end
Using too much RAM can crash after using up 2 GB of RAM:
array1 = {}
function main()
local i = 1
while i < 100000000 do
array1[i] = {{{{{{{{{{}}}}}}}}}}
i = i + 1
end
end
A single {} might not crash Windows 32 bit, but will memory leak after LUA
memory exception.
Allowing users to upload these levelgen can kill the server. Limiting LUA
memory usage and execution time may solve this.
Original issue reported on code.google.com by sam8641@gmail.com on 12 Jan 2015 at 9:29
Original issue reported on code.google.com by
sam8641@gmail.com
on 12 Jan 2015 at 9:29