Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4137dee0 authored by David Anderson's avatar David Anderson
Browse files

libsnapshot: Fix broken iterator in CompressedSnapshotReader.

Bug: NA
Test: apply full OTA with VABC
Change-Id: I9173ac1c6fb601a6f9e0bfb935d7908e0f234f0f
parent d021544d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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()) {