mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Don't try to read past partition end.
This commit is contained in:
@@ -139,6 +139,9 @@ namespace DiscImageChef.Filesystems
|
||||
if(Marshal.SizeOf(f2fsSb) % imagePlugin.GetSectorSize() != 0)
|
||||
sbSize++;
|
||||
|
||||
if(partition.Start + sbAddr >= partition.End)
|
||||
return false;
|
||||
|
||||
byte[] sector = imagePlugin.ReadSectors(partition.Start + sbAddr, sbSize);
|
||||
if(sector.Length < Marshal.SizeOf(f2fsSb))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user