[CPCDSK] Exception trying to open image created by z88dk #722

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

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

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
    • Image format: Extended CPCDSK
    • Application that created the image: z88dk
  • I was listing the filesystem contents...

Description

Exception trying to open CPCDSK image created by z88dk

Exact command line used:

Unit test.

Expected behavior:

Image recognized properly.

Actual behavior:

System.IndexOutOfRangeException

Output of command execution with debug output enabled

System.IndexOutOfRangeException : Index was outside the bounds of the array.
   at Aaru.DiscImages.Cpcdsk.Open(IFilter imageFilter) in /home/claunia/Development/Aaru/Aaru/Aaru.Images/CPCDSK/Read.cs:line 205
   at Aaru.Tests.Filesystems.FilesystemTest.<Detect>b__11_0() in /home/claunia/Development/Aaru/Aaru/Aaru.Tests/Filesystems/FilesystemTest.cs:line 53
   at NUnit.Framework.Assert.Multiple(TestDelegate testDelegate)
   at Aaru.Tests.Filesystems.FilesystemTest.Detect() in /home/claunia/Development/Aaru/Aaru/Aaru.Tests/Filesystems/FilesystemTest.cs:line 30

Image

Unit tests.

Originally created by @claunia on GitHub (May 28, 2021). ### 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 * **Image format**: Extended CPCDSK * **Application that created the image**: z88dk * [x] I was listing the filesystem contents... ### Description Exception trying to open CPCDSK image created by z88dk ### Exact command line used: Unit test. ### Expected behavior: Image recognized properly. ### Actual behavior: System.IndexOutOfRangeException ### Output of command execution with debug output enabled ``` System.IndexOutOfRangeException : Index was outside the bounds of the array. at Aaru.DiscImages.Cpcdsk.Open(IFilter imageFilter) in /home/claunia/Development/Aaru/Aaru/Aaru.Images/CPCDSK/Read.cs:line 205 at Aaru.Tests.Filesystems.FilesystemTest.<Detect>b__11_0() in /home/claunia/Development/Aaru/Aaru/Aaru.Tests/Filesystems/FilesystemTest.cs:line 53 at NUnit.Framework.Assert.Multiple(TestDelegate testDelegate) at Aaru.Tests.Filesystems.FilesystemTest.Detect() in /home/claunia/Development/Aaru/Aaru/Aaru.Tests/Filesystems/FilesystemTest.cs:line 30 ``` ### Image Unit tests.
claunia added the bug label 2026-01-29 15:27:29 +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#722