Skip to content

Commit

Permalink
fix: Account for ffu files with larger stores than minimum
Browse files Browse the repository at this point in the history
  • Loading branch information
gus33000 committed Sep 29, 2024
1 parent c56ef38 commit 06d69dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Img2Ffu.Library/Reader/FullFlashUpdateReaderStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ public FullFlashUpdateReaderStream(string FFUFilePath, ulong storeIndex)
SectorSize = signedImage.ChunkSize;
}

length = (long)((ulong)MinSectorCount * (ulong)SectorSize);
long newLength = (long)((ulong)MinSectorCount * (ulong)SectorSize);

if (newLength > length)
{
length = newLength;
}
}
catch { }
}
Expand Down

0 comments on commit 06d69dd

Please sign in to comment.