Skip to content
Permalink
Browse files
Prevent infinite loop with invalid Inventory format
  • Loading branch information
kwolekr committed Mar 28, 2013
1 parent a782a88 commit d01b74d00a39e38a898265adc0dbd3f15493cdc7
Showing 1 changed file 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");
}
}
}

0 comments on commit d01b74d

Please sign in to comment.