Skip to content

Commit

Permalink
Prevent infinite loop with invalid Inventory format
Browse files Browse the repository at this point in the history
  • Loading branch information
kwolekr committed Mar 28, 2013
1 parent a782a88 commit d01b74d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/inventory.cpp
Expand Up @@ -903,6 +903,10 @@ void Inventory::deSerialize(std::istream &is)

m_lists.push_back(list);
}
else
{
throw SerializationError("invalid inventory specifier");
}
}
}

Expand Down

0 comments on commit d01b74d

Please sign in to comment.