mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Don't try to read past partition end.
This commit is contained in:
@@ -123,6 +123,9 @@ namespace DiscImageChef.Filesystems
|
||||
uint sectors = QNX6_SuperBlockSize / imagePlugin.GetSectorSize();
|
||||
uint bootSectors = QNX6_BootBlocksSize / imagePlugin.GetSectorSize();
|
||||
|
||||
if(partition.Start + bootSectors + sectors >= partition.End)
|
||||
return false;
|
||||
|
||||
byte[] audiSector = imagePlugin.ReadSectors(partition.Start, sectors);
|
||||
byte[] sector = imagePlugin.ReadSectors(partition.Start + bootSectors, sectors);
|
||||
if(sector.Length < QNX6_SuperBlockSize)
|
||||
|
||||
Reference in New Issue
Block a user