]> git.lizzy.rs Git - minetest.git/commit
Fix find_nodes_in_area misbehaving with out-of-map coordinates (#11770)
authorsfan5 <sfan5@live.de>
Fri, 26 Nov 2021 18:32:41 +0000 (19:32 +0100)
committerGitHub <noreply@github.com>
Fri, 26 Nov 2021 18:32:41 +0000 (19:32 +0100)
commit87ab97da2ace31fdb46a88a0901ec664dd666feb
tree71990e03cc72a8780e76a16e9c33cf348c7f05d0
parentb9051386ae296a6112383725bc8bfcd96dc9a226
Fix find_nodes_in_area misbehaving with out-of-map coordinates (#11770)

This ensures that no overflows (side-effects) happen within the find_nodes_in_area function by limiting coordinates like done in the map generation code.
src/script/lua_api/l_env.cpp
src/unittest/test_voxelarea.cpp