diff --git a/Aaru.Filesystems/F2FS.cs b/Aaru.Filesystems/F2FS.cs index c92c12a70..a38ba830a 100644 --- a/Aaru.Filesystems/F2FS.cs +++ b/Aaru.Filesystems/F2FS.cs @@ -73,7 +73,7 @@ namespace Aaru.Filesystems if(Marshal.SizeOf() % imagePlugin.Info.SectorSize != 0) sbSize++; - if(partition.Start + sbAddr >= partition.End) + if(partition.Start + sbAddr + sbSize >= partition.End) return false; byte[] sector = imagePlugin.ReadSectors(partition.Start + sbAddr, sbSize);