mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Prevent infinite loop with invalid Inventory format
This commit is contained in:
parent
a782a88913
commit
d01b74d00a
1 changed files with 4 additions and 0 deletions
|
@ -903,6 +903,10 @@ void Inventory::deSerialize(std::istream &is)
|
|||
|
||||
m_lists.push_back(list);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw SerializationError("invalid inventory specifier");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue