From 19ab6076c48b2fc43856e784148fc571142f7891 Mon Sep 17 00:00:00 2001 From: Nikolaj Schlej Date: Tue, 3 Jan 2023 01:17:41 -0800 Subject: [PATCH] Update ffsparser.cpp Fix an issue with parsing CRC32 sections introduced in the previous commit --- common/ffsparser.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/ffsparser.cpp b/common/ffsparser.cpp index 9567362..7ac9e59 100644 --- a/common/ffsparser.cpp +++ b/common/ffsparser.cpp @@ -2369,9 +2369,7 @@ USTATUS FfsParser::parseGuidedSectionHeader(const UByteArray & section, const UI additionalInfo += usprintf("\nChecksum: %08Xh, invalid, should be %08Xh", crc, calculated); msgInvalidCrc = true; } - - // Adjust dataOffset - dataOffset += sizeof(UINT32); + // No need to change dataOffset here } else if (baGuid == EFI_GUIDED_SECTION_LZMA || baGuid == EFI_GUIDED_SECTION_LZMA_HP