Merge "libsnapshot: Fix broken iterator in CompressedSnapshotReader."

This commit is contained in:
David Anderson 2020-11-07 01:32:06 +00:00 committed by Gerrit Code Review
commit 3d152c926b
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ bool CompressedSnapshotReader::SetCow(std::unique_ptr<CowReader>&& cow) {
while (!op_iter_->Done()) {
const CowOperation* op = &op_iter_->Get();
if (op->type == kCowLabelOp || op->type == kCowFooterOp) {
op_iter_->Next();
continue;
}
if (op->new_block >= ops_.size()) {