Fix false positive in FAT identification.

This commit is contained in:
2020-04-18 19:57:38 +01:00
parent e92c1e7741
commit 61a838cab6

View File

@@ -384,7 +384,7 @@ namespace Aaru.Filesystems.FAT
break;
}
if(fat2SectorNo > partition.End)
if(fat2SectorNo > partition.End || fat2SectorNo == 0)
return false;
AaruConsole.DebugWriteLine("FAT plugin", "2nd fat starts at = {0}", fat2SectorNo);