mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Guard against reading beyond partition end when identifying F2FS filesystem. Fixes #578
This commit is contained in:
@@ -73,7 +73,7 @@ namespace Aaru.Filesystems
|
||||
if(Marshal.SizeOf<Superblock>() % 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);
|
||||
|
||||
Reference in New Issue
Block a user