Skip to content
Snippets Groups Projects
Commit d01b74d0 authored by kwolekr's avatar kwolekr
Browse files

Prevent infinite loop with invalid Inventory format

parent a782a889
No related branches found
No related tags found
No related merge requests found
......@@ -903,6 +903,10 @@ void Inventory::deSerialize(std::istream &is)
m_lists.push_back(list);
}
else
{
throw SerializationError("invalid inventory specifier");
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment