aboutsummaryrefslogtreecommitdiff
path: root/builtin/game/auth.lua
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2015-09-29 01:55:12 +0200
committerKahrl <kahrl@gmx.net>2015-09-29 01:55:12 +0200
commit0cde03254a6564eaec21603e9add4f14e6c2fe52 (patch)
treeffe8ccdecd450f8a8c419936415b3e35b8b2c529 /builtin/game/auth.lua
parentffe291cb78fc7135034fe6456b2d7dfc3761dc52 (diff)
downloadminetest-0cde03254a6564eaec21603e9add4f14e6c2fe52.tar.gz
minetest-0cde03254a6564eaec21603e9add4f14e6c2fe52.tar.bz2
minetest-0cde03254a6564eaec21603e9add4f14e6c2fe52.zip
Don't serialize StaticObjectList with > 65535 objects
Because the count is serialized as u16, this would cause overflow. If minetest later deserialized a mapblock with an incorrect static object count, it would be unable to find the NameIdMapping (which comes after the StaticObjectList) and abort with an error such as "Invalid block data in database: unsupported NameIdMapping version" (issue #2610).
Diffstat (limited to 'builtin/game/auth.lua')
0 files changed, 0 insertions, 0 deletions