From 5eb9370fc185103f3f8700f7da31525d5e862f81 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sun, 10 Jun 2012 19:53:46 +0100 Subject: Uncomment bounds checking for stamp loading diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 68e59e0..f31ad08 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -328,11 +328,11 @@ int Client::GetStampsCount() vector Client::GetStamps(int start, int count) { - //if(start+count > stampIDs.size()) { - // if(start > stampIDs.size()) - // return vector(); - // count = stampIDs.size()-start; - //} + if(start+count > stampIDs.size()) { + if(start > stampIDs.size()) + return vector(); + count = stampIDs.size()-start; + } vector stampRange; int index = 0; -- cgit v0.9.2-21-gd62e