mirror of
https://github.com/minetest/minetest.git
synced 2025-02-18 19:03:46 +01:00
Prevent infinite loop with invalid Inventory format
This commit is contained in:
@ -903,6 +903,10 @@ void Inventory::deSerialize(std::istream &is)
|
|||||||
|
|
||||||
m_lists.push_back(list);
|
m_lists.push_back(list);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw SerializationError("invalid inventory specifier");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user