Working draft

Java Commons Compress

Version
Commons Compress 1.28.0, Expander, on Java 27.0.1.0.2

This implementation follows the default policy in 55 of 134 cases:

The default policy is a working draft. Where an implementation does not do as it says, that can be a choice rather than a bug.

On the other 79, it does not:

!Accepts cases to reject (72)

casewhat it iswhat it makes of it
F03 end-lone-zero-blockAn end-of-archive marker of one zero block, not two.extracts a (2 B, 87428fc5)
F06 checksum-signedA checksum that only matches as the signed sum of the header.extracts a (2 B, 87428fc5)
F07 end-archive-afterAnother archive after the end-of-archive marker.extracts a (2 B, 87428fc5)
F09 end-zero-block-then-memberA zero block, then another member: the end of the archive, or not?extracts a (2 B, 87428fc5)
F10 extended-pax-size-before-gnu-longA pax size followed by a GNU long name: which of them does the size apply to?extracts long-name (512 B, 917dba8e)
F11 magic-odd-versionThe POSIX magic with a version that is neither "00" nor NULs.extracts a (2 B, 87428fc5)
F13 pax-newline-in-pathA newline in a pax path, which split on lines is another record.extracts good\x0a1 path=evil (12 B, a578eb49)
F15 pax-size-on-dirA pax size on a directory, which takes the next header for its data.extracts dir/
F16 type-unknownAn unknown typeflag with a size: data, or no data?extracts unknown (512 B, 917dba8e)
F19 pax-global-between-extended-and-memberA global pax header between an extended header and its member.extracts from-pax (12 B, a578eb49)
F20 pax-global-sizeA global pax header with a size, which frames every member after it, or none.extracts a (512 B, 917dba8e)
F21 pax-size-emptyAn empty pax size, which in POSIX removes the size rather than giving one.extracts a (512 B, 917dba8e)
F23 pax-size-plusA pax size with a plus sign, +512, which conversions of strings to numbers accept.extracts a (512 B, 917dba8e)
F25 pax-size-not-ascii-digitsA pax size in Arabic-Indic digits, ٥١٢, which some conversions of strings read as 512.extracts a (512 B, 917dba8e)
F26 pax-size-leading-zeroA pax size with a leading zero, 0777: 777 in decimal, as POSIX says, or 511 in octal.extracts a (777 B, b09d2516)
F33 size-on-dirA size in the header of a directory, which takes the next header for its data.extracts dir/
F34 size-on-hardlinkA size in the header of a hardlink, in a pax archive, which takes the next header for its data.extracts a (2 B, 87428fc5), h (512 B, 917dba8e)
F35 pax-size-on-hardlinkA pax size on a hardlink, which takes the next header for its data.extracts a (2 B, 87428fc5), h (512 B, 917dba8e)
F38 size-on-hardlink-without-paxA size in the header of a hardlink, in an archive without pax headers: ustar or pax?extracts a (2 B, 87428fc5), h (512 B, 917dba8e)
F39 format-pax-after-v7A v7 header first, then a member with a pax header: is the x header a header, or a file?extracts a (2 B, 87428fc5), from-pax (12 B, a578eb49)
F40 number-size-no-terminatorA size of 12 octal digits, without a terminator.extracts a (10 B, 84d89877)
F41 number-size-leading-nulA size with a NUL before its digits, which takes the next header for its data.extracts a (0 B, e3b0c442), smuggled (0 B, e3b0c442)
F44 pax-global-size-emptyAn empty size in a global pax header: does it delete the size of every later member, or set it?extracts a (512 B, 917dba8e)
F45 type-gnu-sparseAn old GNU sparse file, typeflag S: the data as stored, or the file it expands to?extracts a (1026 B, f93a4465)
F46 pax-size-on-symlinkA symlink with a pax size: data to skip, or none?extracts b (2 B, 02638299), l (512 B, 917dba8e)
F47 checksum-wrong-after-first-memberA header with a wrong checksum after the first member: the end, a block to skip, or a header?extracts a (2 B, 87428fc5), b (512 B, 917dba8e), c (2 B, a3a5e715)
F49 pax-record-empty-lineAn empty line between two pax records.extracts renamed (12 B, a578eb49)
F52 type-gnu-volume-labelA GNU volume label, typeflag V: a file, or skipped?extracts a (2 B, 87428fc5), label (0 B, e3b0c442)
F53 type-gnu-old-long-nameA header of typeflag N, which some readers take for a long name: a name, or a file?extracts @LongLink (10 B, 7dc95644), header-name (12 B, a578eb49)
F54 format-pax-header-without-magicA pax extended header without magic: a header, or a file?extracts renamed (12 B, a578eb49)
N08 extended-pax-path-and-gnu-long-nameA pax path and a GNU long name for one member, and a third name in its header.extracts from-gnu (12 B, a578eb49)
N09 extended-two-pax-headersTwo pax extended headers for one member, with different paths.extracts first (12 B, a578eb49)
N10 format-starA ustar prefix whose end reads as star's times, with star's tar\0 at offset 508.extracts ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp/, ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp/a (2 B, 87428fc5)
N11 gnu-prefix-fieldThe prefix field of a header with GNU magic, which GNU tar uses for times in incremental archives.extracts a (2 B, 87428fc5)
N13 name-backslashA backslash in a name: a character on Unix, a separator on Windows.extracts a\b (21 B, 15acfc39)
N14 name-bytes-after-nulBytes after the NUL that ends a name.extracts a (10 B, ef476e8d)
N18 name-not-utf8A name that is not UTF-8.extracts caf? (8 B, ff3f1fa3)
N20 pax-repeated-keyOne pax key twice in one extended header.extracts second (12 B, a578eb49)
N21 pax-global-pathA global pax header with a path.extracts global-name (2 B, 02638299)
N22 pax-path-emptyAn empty pax path, which in POSIX deletes a path: the pax one, or the header's name too?extracts from-header (12 B, a578eb49)
N23 extended-gnu-long-then-paxA GNU long name, then a pax header, then the member: which of them does the long name apply to?extracts from-gnu (12 B, a578eb49)
N24 pax-hdrcharset-binaryA pax path that is not UTF-8, declared as bytes with hdrcharset=BINARY.extracts caf� (12 B, a578eb49)
N25 symlink-empty-targetA symlink with an empty target.extracts link (0 B, e3b0c442)
N26 pax-global-path-then-emptyA global path, then a global header that removes it with an empty value.extracts a (12 B, a578eb49)
N29 extended-pax-path-before-gnu-long-nameA pax path, then a GNU long name, then the member: which name does it get?extracts from-pax (12 B, a578eb49)
N30 name-drive-letterA name that starts with a drive letter, C:/drive-letter.extracts C:/, C:/drive-letter (35 B, 1f39eb72)
N31 pax-linkpath-not-utf8A pax linkpath that is not UTF-8.extracts link (0 B, e3b0c442)
N32 linkname-not-utf8A symlink whose target in the header is not UTF-8.extracts link (0 B, e3b0c442)
N33 type-solaris-extendedA Solaris extended header, typeflag X: a pax header, or a file?extracts from-x (12 B, a578eb49)
N34 pax-linkpath-emptyAn empty pax linkpath, which in POSIX deletes a target: the pax one, or the header's too?extracts link (0 B, e3b0c442)
N36 pax-gnu-sparseA sparse file in GNU's pax format 1.0: the data as stored, or the file it expands to?extracts a (1026 B, f93a4465)
N37 extended-two-gnu-long-namesTwo GNU long names for one member: the first, the last, or the header's?extracts first (12 B, a578eb49)
N39 gnu-long-name-size-without-nulA GNU long name whose size leaves out its NUL, with bytes after it.extracts name (12 B, a578eb49)
N40 pax-global-linkpathA global pax header with a linkpath.extracts l (0 B, e3b0c442), m (0 B, e3b0c442)
N41 pax-gnu-sparse-nameA pax GNU.sparse.name on a file that is not sparse, after a path.extracts path-name (12 B, a578eb49)
F60 trailing-slash-file-with-sizeA regular file a/ with a size: a directory without data, or a file with data?extracts a/, b (2 B, 02638299)
K01 kind-trailing-slash-fileA regular file whose name ends in a slash: a file, or a directory?extracts a/
K02 linkname-on-fileA regular file with a link target.extracts a (19 B, bc345849)
K03 symlink-trailing-slashA symlink whose name ends in a slash.extracts link/, target/
K04 name-empty-with-prefixA regular file with an empty name and a prefix: dir/, or no name?extracts dir/
K05 hardlink-trailing-slashA hardlink whose name ends in a slash: a link, or a directory?extracts a (2 B, 87428fc5), b/
S03 hardlink-missing-targetA hardlink to a member that is not in the archive.extracts h (0 B, e3b0c442)
S04 hardlink-to-itselfA hardlink to itself.extracts a (0 B, e3b0c442)
S05 hardlink-to-later-memberA hardlink to a member that comes later.extracts f (2 B, 092fcfbb), h (0 B, e3b0c442)
S06 hardlink-to-symlinkA hardlink to a symlink: a link to the symlink, or to its target?extracts f (2 B, 092fcfbb), h (0 B, e3b0c442), s (0 B, e3b0c442)
S07 tree-duplicate-file-differsThe same file twice, with different contents: the first copy, or the last?extracts a (5 B, 761d1fb1)
S09 tree-duplicate-file-identicalThe same file twice, with the same contents.extracts a (5 B, a6328afc)
S10 tree-symlink-then-fileA symlink, then a file of the same name: replace the link, or write through it?extracts a (28 B, d5a04bbb)
S13 hardlink-empty-targetA hardlink with an empty target.extracts a (2 B, 87428fc5), link (0 B, e3b0c442)
S15 tree-file-then-hardlinkA file, then a hardlink of the same name to another file.extracts a (0 B, e3b0c442), b (2 B, 02638299)
S17 hardlink-then-file-againA file, a hardlink to it, then the file again: does the link keep the first contents?extracts a (7 B, 480c2336), b (0 B, e3b0c442)
S18 hardlink-absoluteA hardlink to /etc/passwd, in an archive with a member etc/passwd.extracts etc/, etc/passwd (22 B, cf754f09), l (0 B, e3b0c442)

✗Rejects cases to accept, or extracts another tree (7)

casewhat it iswhat it makes of it
N27 pax-long-symlinkA symlink with a long name and a long target, in a pax path and linkpath respectively.extracts llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll (0 B, e3b0c442), tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt (7 B, c97ecfda)
N28 pax-long-hardlinkA hardlink with a long name and a long target, in a pax path and linkpath respectively.extracts hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh (0 B, e3b0c442), tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt (7 B, c97ecfda)
N46 pax-linkpath-linkname-emptyA symlink with an empty linkname field and a pax linkpath.extracts l (0 B, e3b0c442)
N47 gnu-long-linkA symlink with a long target, in a GNU long link name.extracts l (0 B, e3b0c442)
N07 symlink-absoluteA symlink to an absolute path, created as it is.extracts link (0 B, e3b0c442)
N35 symlink-escapesA relative symlink whose target leads out of the destination.extracts link (0 B, e3b0c442)
S16 hardlink-target-spelled-differentlyA hardlink to ./a, where the member is named a.extracts a (2 B, 87428fc5), h (0 B, e3b0c442)