From 90251d19322972236df744dd0e3b48e668184f56 Mon Sep 17 00:00:00 2001 From: Gent Semaj Date: Thu, 29 Oct 2026 20:16:28 -0700 Subject: [PATCH] Fix hash calculation when both signature sections start in the same chunk --- src/util/updatableappimage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/updatableappimage.cpp b/src/util/updatableappimage.cpp index 5efc920..fb14014 100644 --- a/src/util/updatableappimage.cpp +++ b/src/util/updatableappimage.cpp @@ -233,7 +233,7 @@ namespace appimage::update { assertIfstreamGood(ifs); totalBytesRead += count; - bytesLeftInChunk -= bytesRead; + bytesLeftInChunk -= count; }; auto checkSkipSection = [&](const std::streamsize sectionOffset, const std::streamsize sectionLength) {