mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Do not overflow device on Fossil identifying.
This commit is contained in:
@@ -147,6 +147,9 @@ namespace DiscImageChef.Filesystems
|
||||
|
||||
FossilHeader hdr = new FossilHeader();
|
||||
|
||||
if(partition.Start + hdrSector > imagePlugin.GetSectors())
|
||||
return false;
|
||||
|
||||
byte[] sector = imagePlugin.ReadSector(partition.Start + hdrSector);
|
||||
hdr = BigEndianMarshal.ByteArrayToStructureBigEndian<FossilHeader>(sector);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user