github RealBurst/arcana v1.2.1
Arcana v1.2.1

16 days ago

Amiga ADF: game disks without a file system

Most Amiga games do not use AmigaDOS: their boot block starts their own track loader, so there are no file names. Such disks were refused until now; they are now cut into pieces named after their offset:

  • bootblock.bin: the 1024 bytes of the boot block
  • the areas the boot block reads (found in its 68000 code: MOVE.L #value,d16(A1) then DoIO / SendIO; the code is read, never run)
  • the files of the game directory when one is found in the loaded programs (a table of (length, offset) or (offset, length) entries), named file-NNN.bin after the number the game loads them by
  • the other non-empty areas of the disk

Packed programs are unpacked: the new AmigaDecruncher recognizes an LZ+RLE cruncher by its 68000 routine and unpacks it in Java (OFFSET.unpacked.bin).

Details and limits: doc/formats/adf.md.

Security: safer extraction paths

SafePathBuilder (general and RAR):

  • entry names with characters the platform refuses (:, ?... on Windows, NUL everywhere) no longer abort the extraction with an InvalidPathException; they are sanitized like the other names
  • extracting into a filesystem root (C:\, /) works again
  • the path traversal guard compares paths element by element: in the RAR builder, an entry could escape to a sibling directory whose name starts like the destination (out2 for out) through a symbolic link

Thanks to @666s666 for the report and the fix (#1), Arcana's first outside contribution.

Get it

  • Arcana-v1.2.1.jar and SHA256SUMS.txt below; requires Java 8 or later
  • Maven Central: io.github.realburst:arcana:1.2.1

Don't miss a new arcana release

NewReleases is sending notifications on new releases.