mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Added bound checks.
This commit is contained in:
@@ -137,6 +137,9 @@ namespace DiscImageChef.Filesystems
|
||||
|
||||
public override bool Identify(ImagePlugins.ImagePlugin imagePlugin, Partition partition)
|
||||
{
|
||||
if(partition.Start + 1 >= imagePlugin.GetSectors())
|
||||
return false;
|
||||
|
||||
byte[] sector = imagePlugin.ReadSector(partition.Start + 1);
|
||||
if(sector.Length < 512)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user