Guard AmigaDOS identification against too small partitions. Fixes #595

This commit is contained in:
2021-06-03 12:21:58 +01:00
parent 7ffc7bf31c
commit ba040dd062

View File

@@ -60,7 +60,7 @@ namespace Aaru.Filesystems
public bool Identify(IMediaImage imagePlugin, Partition partition)
{
if(partition.Start >= partition.End)
if(partition.Start + 4 >= partition.End)
return false;
// Boot block is unless defined otherwise, 2 blocks