1--- a/backup_restorer.cc
2+++ b/backup_restorer.cc
3@@ -48,7 +48,7 @@
4 // TODO: this disables size checks for each separate message. Figure a better
5 // way to do this while keeping them enabled. It seems we need to create an
6 // instance of CodedInputStream for each message, but it might be expensive
7- cis.SetTotalBytesLimit( backupData.size(), -1 );
8+ cis.SetTotalBytesLimit( backupData.size() );
9
10 // Used when emitting chunks
11 string chunk;