Skip to content

Commit

Permalink
Update ffsparser.cpp
Browse files Browse the repository at this point in the history
Fix an issue with parsing CRC32 sections introduced in the previous commit
  • Loading branch information
NikolajSchlej authored Jan 3, 2023
1 parent 1b143c8 commit 19ab607
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions common/ffsparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19ab607

Please sign in to comment.