mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Checks there is a minimum of sectors.
This commit is contained in:
@@ -59,6 +59,9 @@ namespace DiscImageChef.Plugins
|
||||
{
|
||||
UInt16 drSigWord;
|
||||
|
||||
if ((2 + partitionOffset) >= imagePlugin.GetSectors())
|
||||
return false;
|
||||
|
||||
byte[] mdb_sector = imagePlugin.ReadSector(2 + partitionOffset);
|
||||
|
||||
drSigWord = BigEndianBitConverter.ToUInt16(mdb_sector, 0x000);
|
||||
|
||||
Reference in New Issue
Block a user