From 4137dee0e5bf36f6f556425ecb64cfd84b186f69 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 6 Nov 2020 15:09:46 -0800 Subject: [PATCH] libsnapshot: Fix broken iterator in CompressedSnapshotReader. Bug: NA Test: apply full OTA with VABC Change-Id: I9173ac1c6fb601a6f9e0bfb935d7908e0f234f0f --- fs_mgr/libsnapshot/snapshot_reader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/fs_mgr/libsnapshot/snapshot_reader.cpp b/fs_mgr/libsnapshot/snapshot_reader.cpp index 0ac79a123..b56d879a8 100644 --- a/fs_mgr/libsnapshot/snapshot_reader.cpp +++ b/fs_mgr/libsnapshot/snapshot_reader.cpp @@ -91,6 +91,7 @@ bool CompressedSnapshotReader::SetCow(std::unique_ptr&& 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()) {