Added bound checks.

This commit is contained in:
2017-11-08 17:05:00 +00:00
parent 7d6674d7f5
commit 9b3f0dcca1
7 changed files with 22 additions and 0 deletions

View File

@@ -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;