1 --- a/backup_restorer.cc
2 +++ b/backup_restorer.cc
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() );
10 // Used when emitting chunks