Checks there is a minimum of sectors.

This commit is contained in:
2014-07-09 19:49:14 +01:00
parent 00b0e6f455
commit 679e8f8070
17 changed files with 51 additions and 0 deletions

View File

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