[F2FS filesystem] Requested more sector than available identifying an HFS disk #707

Closed
opened 2026-01-29 15:27:04 +00:00 by claunia · 0 comments
Owner

Originally created by @claunia on GitHub (May 2, 2021).

Originally assigned to: @claunia on GitHub.

Prerequisites

  • Are you running the latest version?
  • Can you reproduce the problem in the debug version?

Check and fill as appropriate:

  • I was running Aaru under Linux 5.11.4-arch1-1...
  • ...in 64-bit
  • ...using an Intel / AMD processor

Description

When trying to identify filesystem on an HFS disk, F2FS crashes.

Exact command line used:

Unit test.

Expected behavior:

F2FS does not identify a filesystem.

Actual behavior:

F2FS crashes.

Output of command execution with debug output enabled

System.ArgumentOutOfRangeException : Requested more sectors than available (Parameter 'length')
   at Aaru.DiscImages.AaruFormat.ReadSectors(UInt64 sectorAddress, UInt32 length) in /home/claunia/Development/Aaru/Aaru/Aaru.Images/AaruFormat/Read.cs:line 1508
   at Aaru.Filesystems.F2FS.Identify(IMediaImage imagePlugin, Partition partition) in /home/claunia/Development/Aaru/Aaru/Aaru.Filesystems/F2FS.cs:line 79
   at Aaru.Core.Filesystems.<>c__DisplayClass0_0.<Identify>b__0(IFilesystem plugin) in /home/claunia/Development/Aaru/Aaru/Aaru.Core/Filesystems.cs:line 54
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.ToList()
   at Aaru.Core.Filesystems.Identify(IMediaImage imagePlugin, List`1& idPlugins, Partition partition, Boolean getGuid) in /home/claunia/Development/Aaru/Aaru/Aaru.Core/Filesystems.cs:line 54
   at Aaru.Tests.Filesystems.FilesystemTest.<Info>b__13_0() in /home/claunia/Development/Aaru/Aaru/Aaru.Tests/Filesystems/FilesystemTest.cs:line 181
   at NUnit.Framework.Assert.Multiple(TestDelegate testDelegate)
   at Aaru.Tests.Filesystems.FilesystemTest.Info() in /home/claunia/Development/Aaru/Aaru/Aaru.Tests/Filesystems/FilesystemTest.cs:line 143
Originally created by @claunia on GitHub (May 2, 2021). Originally assigned to: @claunia on GitHub. ### Prerequisites * [x] Are you running the latest version? * [x] Can you reproduce the problem in the debug version? ### Check and fill as appropriate: * [x] I was running Aaru under Linux 5.11.4-arch1-1... * [x] ...in 64-bit * [x] ...using an Intel / AMD processor ### Description When trying to identify filesystem on an HFS disk, F2FS crashes. ### Exact command line used: Unit test. ### Expected behavior: F2FS does not identify a filesystem. ### Actual behavior: F2FS crashes. ### Output of command execution with debug output enabled ``` System.ArgumentOutOfRangeException : Requested more sectors than available (Parameter 'length') at Aaru.DiscImages.AaruFormat.ReadSectors(UInt64 sectorAddress, UInt32 length) in /home/claunia/Development/Aaru/Aaru/Aaru.Images/AaruFormat/Read.cs:line 1508 at Aaru.Filesystems.F2FS.Identify(IMediaImage imagePlugin, Partition partition) in /home/claunia/Development/Aaru/Aaru/Aaru.Filesystems/F2FS.cs:line 79 at Aaru.Core.Filesystems.<>c__DisplayClass0_0.<Identify>b__0(IFilesystem plugin) in /home/claunia/Development/Aaru/Aaru/Aaru.Core/Filesystems.cs:line 54 at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.ToList() at Aaru.Core.Filesystems.Identify(IMediaImage imagePlugin, List`1& idPlugins, Partition partition, Boolean getGuid) in /home/claunia/Development/Aaru/Aaru/Aaru.Core/Filesystems.cs:line 54 at Aaru.Tests.Filesystems.FilesystemTest.<Info>b__13_0() in /home/claunia/Development/Aaru/Aaru/Aaru.Tests/Filesystems/FilesystemTest.cs:line 181 at NUnit.Framework.Assert.Multiple(TestDelegate testDelegate) at Aaru.Tests.Filesystems.FilesystemTest.Info() in /home/claunia/Development/Aaru/Aaru/Aaru.Tests/Filesystems/FilesystemTest.cs:line 143 ```
claunia added the bugfilesystembeginner labels 2026-01-29 15:27:04 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aaru-dps/Aaru-aaru-dps#707