Skip to content

Commit

Permalink
Fix FIT entry engine checksum (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
serg-pushkarev authored and vit9696 committed Jan 20, 2020
1 parent 2ef8d77 commit 516949a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion common/ffsparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3668,7 +3668,6 @@ USTATUS FfsParser::parseFit(const UModelIndex & index)
// Calculate FIT entry checksum
UByteArray tempFIT = model->body(fitIndex).mid(fitOffset, fitSize);
FIT_ENTRY* tempFitHeader = (FIT_ENTRY*)tempFIT.data();
tempFitHeader->CsFlag = 0;
tempFitHeader->Checksum = 0;
UINT8 calculated = calculateChecksum8((const UINT8*)tempFitHeader, fitSize);
if (calculated != fitHeader->Checksum) {
Expand Down

0 comments on commit 516949a

Please sign in to comment.