mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Added bound checks.
This commit is contained in:
@@ -68,6 +68,9 @@ namespace DiscImageChef.PartPlugins
|
||||
|
||||
partitions = new List<CommonTypes.Partition>();
|
||||
|
||||
if(sectorOffset + 2 >= imagePlugin.GetSectors())
|
||||
return false;
|
||||
|
||||
byte[] ddm_sector = imagePlugin.ReadSector(sectorOffset);
|
||||
AppleDriverDescriptorMap ddm;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user