Skip to content

Commit d01b74d

Browse files
committedMar 28, 2013
Prevent infinite loop with invalid Inventory format
1 parent a782a88 commit d01b74d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

Diff for: ‎src/inventory.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,10 @@ void Inventory::deSerialize(std::istream &is)
903903

904904
m_lists.push_back(list);
905905
}
906+
else
907+
{
908+
throw SerializationError("invalid inventory specifier");
909+
}
906910
}
907911
}
908912

0 commit comments

Comments
 (0)