Add comment to explain hang_emerge

This commit is contained in:
Nils Dagsson Moskopp 2022-05-11 20:58:37 +02:00
parent 9b54717da4
commit 217af233a7
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,7 @@
-- Calling minetest.emerge_area() with an out-of-bounds position like
-- below makes Minetest 5.5 hang and waste CPU and RAM resources; any
-- attacker could use it to hang a server. Note that x=32766 is safe.
local emerge = function() local emerge = function()
local i = 32767 local i = 32767
minetest.emerge_area( minetest.emerge_area(