git: 13d826ff947d - main - libarchive: merge from vendor branch

From: Martin Matuska <mm_at_FreeBSD.org>
Date: Mon, 29 Apr 2024 08:30:46 UTC
The branch main has been updated by mm:

URL: https://cgit.FreeBSD.org/src/commit/?id=13d826ff947d9026f98e317e7385b22abfc0eace

commit 13d826ff947d9026f98e317e7385b22abfc0eace
Merge: d289382897e7 51c823ac2777
Author:     Martin Matuska <mm@FreeBSD.org>
AuthorDate: 2024-04-29 08:15:04 +0000
Commit:     Martin Matuska <mm@FreeBSD.org>
CommitDate: 2024-04-29 08:17:53 +0000

    libarchive: merge from vendor branch
    
    Libarchive 3.7.4 + three fixes from master
    
    Security fixes:
     #2135 rar: Fix OOB in rar e8 filter (CVE-2024-26256)
     #2145 zip: Fix out of boundary access
     #2148 rar: Fix OOB in rar delta filter
     #2149 rar: Fix OOB in rar audio filter
    
    Important bugfixes:
     #2131 7zip: Limit amount of properties
     #2110 bsdtar: Fix error handling around strtol() usages
     #2116 passphrase: Never allow empty passwords
     #2124 rar: Fix "File CRC Error" when extracting specific rar4 archives
     #2123 xar: Avoid infinite link loop
     #2150 xar: Fix another infinite loop and expat error handling
     #2108 zip: Update AppleDouble support for directories
     #2071 zstd: Implement core detectiongit
    
    PR:             278588 (exp-run)
    MFC after:      1 day

 contrib/libarchive/NEWS                            |  2 +
 contrib/libarchive/README.md                       |  2 +-
 contrib/libarchive/cat/cmdline.c                   | 16 +++--
 contrib/libarchive/cpio/cmdline.c                  | 16 +++--
 contrib/libarchive/libarchive/archive.h            |  6 +-
 contrib/libarchive/libarchive/archive_entry.h      |  2 +-
 contrib/libarchive/libarchive/archive_entry_acl.3  |  2 +-
 contrib/libarchive/libarchive/archive_read_disk.3  |  4 +-
 .../libarchive/archive_read_support_format_7zip.c  |  2 +
 .../libarchive/archive_read_support_format_all.c   |  2 +-
 .../libarchive/archive_read_support_format_ar.c    |  4 +-
 .../libarchive/archive_read_support_format_lha.c   |  4 +-
 .../libarchive/archive_read_support_format_mtree.c |  8 +--
 .../libarchive/archive_read_support_format_rar.c   | 30 +++++++-
 .../libarchive/archive_read_support_format_warc.c  | 10 ++-
 .../libarchive/archive_read_support_format_xar.c   |  9 +++
 .../libarchive/archive_read_support_format_zip.c   | 15 +++-
 contrib/libarchive/libarchive/archive_util.c       |  3 +-
 .../libarchive/archive_write_add_filter_zstd.c     | 23 +++++-
 .../libarchive/archive_write_disk_posix.c          |  3 +-
 .../libarchive/libarchive/archive_write_private.h  |  2 +-
 .../libarchive/archive_write_set_format_gnutar.c   |  2 +-
 .../libarchive/archive_write_set_passphrase.c      | 35 ++++-----
 .../libarchive/libarchive/libarchive_internals.3   |  2 +-
 .../test/test_read_format_xar_doublelink.c         | 55 ++++++++++++++
 .../test/test_read_format_xar_doublelink.xar.uu    | 12 ++++
 .../libarchive/test/test_write_disk_appledouble.c  | 84 ++++++++++++++++++++++
 .../test/test_write_disk_appledouble_zip.zip.uu    | 27 +++++++
 contrib/libarchive/libarchive_fe/passphrase.c      |  4 +-
 contrib/libarchive/tar/bsdtar.1                    | 15 ++--
 contrib/libarchive/tar/bsdtar.c                    | 63 ++++++++--------
 contrib/libarchive/tar/cmdline.c                   | 16 +++--
 contrib/libarchive/unzip/cmdline.c                 | 18 +++--
 contrib/libarchive/unzip/test/test_I.c             | 13 ++++
 lib/libarchive/tests/Makefile                      |  3 +
 35 files changed, 404 insertions(+), 110 deletions(-)

diff --cc contrib/libarchive/README.md
index 727ed49856b6,000000000000..933de6986425
mode 100644,000000..100644
--- a/contrib/libarchive/README.md
+++ b/contrib/libarchive/README.md
@@@ -1,244 -1,0 +1,244 @@@
 +# Welcome to libarchive!
 +
 +The libarchive project develops a portable, efficient C library that
 +can read and write streaming archives in a variety of formats.  It
 +also includes implementations of the common `tar`, `cpio`, and `zcat`
 +command-line tools that use the libarchive library.
 +
 +## Questions?  Issues?
 +
 +* https://www.libarchive.org is the home for ongoing
 +  libarchive development, including documentation,
 +  and links to the libarchive mailing lists.
 +* To report an issue, use the issue tracker at
 +  https://github.com/libarchive/libarchive/issues
 +* To submit an enhancement to libarchive, please
 +  submit a pull request via GitHub: https://github.com/libarchive/libarchive/pulls
 +
 +## Contents of the Distribution
 +
 +This distribution bundle includes the following major components:
 +
 +* **libarchive**: a library for reading and writing streaming archives
 +* **tar**: the 'bsdtar' program is a full-featured 'tar' implementation built on libarchive
 +* **cpio**: the 'bsdcpio' program is a different interface to essentially the same functionality
 +* **cat**: the 'bsdcat' program is a simple replacement tool for zcat, bzcat, xzcat, and such
 +* **unzip**: the 'bsdunzip' program is a simple replacement tool for Info-ZIP's unzip
 +* **examples**: Some small example programs that you may find useful.
 +* **examples/minitar**: a compact sample demonstrating use of libarchive.
 +* **contrib**:  Various items sent to me by third parties; please contact the authors with any questions.
 +
 +The top-level directory contains the following information files:
 +
 +* **NEWS** - highlights of recent changes
 +* **COPYING** - what you can do with this
 +* **INSTALL** - installation instructions
 +* **README** - this file
 +* **CMakeLists.txt** - input for "cmake" build tool, see INSTALL
 +* **configure** - configuration script, see INSTALL for details.  If your copy of the source lacks a `configure` script, you can try to construct it by running the script in `build/autogen.sh` (or use `cmake`).
 +
 +The following files in the top-level directory are used by the 'configure' script:
 +
 +* `Makefile.am`, `aclocal.m4`, `configure.ac` - used to build this distribution, only needed by maintainers
 +* `Makefile.in`, `config.h.in` - templates used by configure script
 +
 +## Documentation
 +
 +In addition to the informational articles and documentation
 +in the online [libarchive Wiki](https://github.com/libarchive/libarchive/wiki),
 +the distribution also includes a number of manual pages:
 +
 + * bsdtar.1 explains the use of the bsdtar program
 + * bsdcpio.1 explains the use of the bsdcpio program
 + * bsdcat.1 explains the use of the bsdcat program
 + * libarchive.3 gives an overview of the library as a whole
 + * archive_read.3, archive_write.3, archive_write_disk.3, and
 +   archive_read_disk.3 provide detailed calling sequences for the read
 +   and write APIs
 + * archive_entry.3 details the "struct archive_entry" utility class
 + * archive_internals.3 provides some insight into libarchive's
 +   internal structure and operation.
 + * libarchive-formats.5 documents the file formats supported by the library
 + * cpio.5, mtree.5, and tar.5 provide detailed information about these
 +   popular archive formats, including hard-to-find details about
 +   modern cpio and tar variants.
 +
 +The manual pages above are provided in the 'doc' directory in
 +a number of different formats.
 +
 +You should also read the copious comments in `archive.h` and the
 +source code for the sample programs for more details.  Please let us
 +know about any errors or omissions you find.
 +
 +## Supported Formats
 +
 +Currently, the library automatically detects and reads the following formats:
 +
 +  * Old V7 tar archives
 +  * POSIX ustar
 +  * GNU tar format (including GNU long filenames, long link names, and sparse files)
 +  * Solaris 9 extended tar format (including ACLs)
 +  * POSIX pax interchange format
 +  * POSIX octet-oriented cpio
 +  * SVR4 ASCII cpio
 +  * Binary cpio (big-endian or little-endian)
 +  * PWB binary cpio
 +  * ISO9660 CD-ROM images (with optional Rockridge or Joliet extensions)
 +  * ZIP archives (with uncompressed or "deflate" compressed entries, including support for encrypted Zip archives)
 +  * ZIPX archives (with support for bzip2, ppmd8, lzma and xz compressed entries)
 +  * GNU and BSD 'ar' archives
 +  * 'mtree' format
 +  * 7-Zip archives (including archives that use zstandard compression)
 +  * Microsoft CAB format
 +  * LHA and LZH archives
 +  * RAR and RAR 5.0 archives (with some limitations due to RAR's proprietary status)
 +  * XAR archives
 +
 +The library also detects and handles any of the following before evaluating the archive:
 +
 +  * uuencoded files
 +  * files with RPM wrapper
 +  * gzip compression
 +  * bzip2 compression
 +  * compress/LZW compression
 +  * lzma, lzip, and xz compression
 +  * lz4 compression
 +  * lzop compression
 +  * zstandard compression
 +
 +The library can create archives in any of the following formats:
 +
 +  * POSIX ustar
 +  * POSIX pax interchange format
 +  * "restricted" pax format, which will create ustar archives except for
 +    entries that require pax extensions (for long filenames, ACLs, etc).
 +  * Old GNU tar format
 +  * Old V7 tar format
 +  * POSIX octet-oriented cpio
 +  * SVR4 "newc" cpio
 +  * Binary cpio (little-endian)
 +  * PWB binary cpio
 +  * shar archives
 +  * ZIP archives (with uncompressed or "deflate" compressed entries)
 +  * GNU and BSD 'ar' archives
 +  * 'mtree' format
 +  * ISO9660 format
 +  * 7-Zip archives
 +  * XAR archives
 +
 +When creating archives, the result can be filtered with any of the following:
 +
 +  * uuencode
 +  * gzip compression
 +  * bzip2 compression
 +  * compress/LZW compression
 +  * lzma, lzip, and xz compression
 +  * lz4 compression
 +  * lzop compression
 +  * zstandard compression
 +
 +## Notes about the Library Design
 +
 +The following notes address many of the most common
 +questions we are asked about libarchive:
 +
 +* This is a heavily stream-oriented system.  That means that
 +  it is optimized to read or write the archive in a single
 +  pass from beginning to end.  For example, this allows
 +  libarchive to process archives too large to store on disk
 +  by processing them on-the-fly as they are read from or
 +  written to a network or tape drive.  This also makes
 +  libarchive useful for tools that need to produce
 +  archives on-the-fly (such as webservers that provide
 +  archived contents of a users account).
 +
 +* In-place modification and random access to the contents
 +  of an archive are not directly supported.  For some formats,
 +  this is not an issue: For example, tar.gz archives are not
 +  designed for random access.  In some other cases, libarchive
 +  can re-open an archive and scan it from the beginning quickly
 +  enough to provide the needed abilities even without true
 +  random access.  Of course, some applications do require true
 +  random access; those applications should consider alternatives
 +  to libarchive.
 +
 +* The library is designed to be extended with new compression and
 +  archive formats.  The only requirement is that the format be
 +  readable or writable as a stream and that each archive entry be
 +  independent.  There are articles on the libarchive Wiki explaining
 +  how to extend libarchive.
 +
 +* On read, compression and format are always detected automatically.
 +
 +* The same API is used for all formats; it should be very
 +  easy for software using libarchive to transparently handle
 +  any of libarchive's archiving formats.
 +
 +* Libarchive's automatic support for decompression can be used
 +  without archiving by explicitly selecting the "raw" and "empty"
 +  formats.
 +
 +* I've attempted to minimize static link pollution.  If you don't
 +  explicitly invoke a particular feature (such as support for a
 +  particular compression or format), it won't get pulled in to
 +  statically-linked programs.  In particular, if you don't explicitly
 +  enable a particular compression or decompression support, you won't
 +  need to link against the corresponding compression or decompression
 +  libraries.  This also reduces the size of statically-linked
 +  binaries in environments where that matters.
 +
 +* The library is generally _thread safe_ depending on the platform:
 +  it does not define any global variables of its own.  However, some
 +  platforms do not provide fully thread-safe versions of key C library
 +  functions.  On those platforms, libarchive will use the non-thread-safe
 +  functions.  Patches to improve this are of great interest to us.
 +
 +* The function `archive_write_disk_header()` is _not_ thread safe on
 +  POSIX machines and could lead to security issue resulting in world
 +  writeable directories.  Thus it must be mutexed by the calling code.
 +  This is due to calling `umask(oldumask = umask(0))`, which sets the
 +  umask for the whole process to 0 for a short time frame.
 +  In case other thread calls the same function in parallel, it might
 +  get interrupted by it and cause the executable to use umask=0 for the
 +  remaining execution.
-   This will then lead to implicitely created directories to have 777
++  This will then lead to implicitly created directories to have 777
 +  permissions without sticky bit.
 +
 +* In particular, libarchive's modules to read or write a directory
 +  tree do use `chdir()` to optimize the directory traversals.  This
 +  can cause problems for programs that expect to do disk access from
 +  multiple threads.  Of course, those modules are completely
 +  optional and you can use the rest of libarchive without them.
 +
 +* The library is _not_ thread aware, however.  It does no locking
 +  or thread management of any kind.  If you create a libarchive
 +  object and need to access it from multiple threads, you will
 +  need to provide your own locking.
 +
 +* On read, the library accepts whatever blocks you hand it.
 +  Your read callback is free to pass the library a byte at a time
 +  or mmap the entire archive and give it to the library at once.
 +  On write, the library always produces correctly-blocked output.
 +
 +* The object-style approach allows you to have multiple archive streams
 +  open at once.  bsdtar uses this in its "@archive" extension.
 +
 +* The archive itself is read/written using callback functions.
 +  You can read an archive directly from an in-memory buffer or
 +  write it to a socket, if you wish.  There are some utility
 +  functions to provide easy-to-use "open file," etc, capabilities.
 +
 +* The read/write APIs are designed to allow individual entries
 +  to be read or written to any data source:  You can create
 +  a block of data in memory and add it to a tar archive without
 +  first writing a temporary file.  You can also read an entry from
 +  an archive and write the data directly to a socket.  If you want
 +  to read/write entries to disk, there are convenience functions to
 +  make this especially easy.
 +
 +* Note: The "pax interchange format" is a POSIX standard extended tar
 +  format that should be used when the older _ustar_ format is not
 +  appropriate.  It has many advantages over other tar formats
 +  (including the legacy GNU tar format) and is widely supported by
 +  current tar implementations.
 +
diff --cc contrib/libarchive/libarchive/test/test_read_format_xar_doublelink.c
index 000000000000,78d6626a09bf..78d6626a09bf
mode 000000,100644..100644
--- a/contrib/libarchive/libarchive/test/test_read_format_xar_doublelink.c
+++ b/contrib/libarchive/libarchive/test/test_read_format_xar_doublelink.c
diff --cc contrib/libarchive/libarchive/test/test_read_format_xar_doublelink.xar.uu
index 000000000000,7aa638a86e7c..7aa638a86e7c
mode 000000,100644..100644
--- a/contrib/libarchive/libarchive/test/test_read_format_xar_doublelink.xar.uu
+++ b/contrib/libarchive/libarchive/test/test_read_format_xar_doublelink.xar.uu
diff --cc contrib/libarchive/libarchive/test/test_write_disk_appledouble_zip.zip.uu
index 000000000000,5ab67533d559..5ab67533d559
mode 000000,100644..100644
--- a/contrib/libarchive/libarchive/test/test_write_disk_appledouble_zip.zip.uu
+++ b/contrib/libarchive/libarchive/test/test_write_disk_appledouble_zip.zip.uu
diff --cc lib/libarchive/tests/Makefile
index e14b37621e5c,000000000000..dc3767c319c3
mode 100644,000000..100644
--- a/lib/libarchive/tests/Makefile
+++ b/lib/libarchive/tests/Makefile
@@@ -1,686 -1,0 +1,689 @@@
 +.include <src.opts.mk>
 +
 +PACKAGE=	tests
 +
 +WARNS?=		3
 +
 +_LIBARCHIVEDIR=	${SRCTOP}/contrib/libarchive
 +
 +ATF_TESTS_SH+=	functional_test
 +
 +TEST_METADATA.functional_test+=	timeout="600"
 +
 +BINDIR=	${TESTSDIR}
 +
 +PROGS+=	libarchive_test
 +
 +CFLAGS+= -I${.CURDIR} -I${.CURDIR:H} -I${.OBJDIR}
 +CFLAGS+= -I${_LIBARCHIVEDIR}/libarchive -I${_LIBARCHIVEDIR}/libarchive/test
 +CFLAGS+= -I${_LIBARCHIVEDIR}/test_utils
 +
 +CFLAGS.test_utils.c+=	-Wno-cast-align
 +
 +# Uncomment to link against dmalloc
 +#LDADD+= -L/usr/local/lib -ldmalloc
 +#CFLAGS+= -I/usr/local/include -DUSE_DMALLOC
 +
 +.PATH: ${_LIBARCHIVEDIR}/libarchive/test
 +TESTS_SRCS= \
 +	test_acl_nfs4.c				\
 +	test_acl_pax.c				\
 +	test_acl_platform_nfs4.c		\
 +	test_acl_platform_posix1e.c		\
 +	test_acl_posix1e.c			\
 +	test_acl_text.c				\
 +	test_archive_api_feature.c		\
 +	test_archive_clear_error.c		\
 +	test_archive_cmdline.c			\
 +	test_archive_digest.c			\
 +	test_archive_getdate.c			\
 +	test_archive_match_time.c		\
 +	test_archive_match_owner.c		\
 +	test_archive_match_path.c		\
 +	test_archive_pathmatch.c		\
 +	test_archive_read_add_passphrase.c	\
 +	test_archive_read_close_twice.c		\
 +	test_archive_read_close_twice_open_fd.c	\
 +	test_archive_read_close_twice_open_filename.c	\
 +	test_archive_read_multiple_data_objects.c	\
 +	test_archive_read_next_header_empty.c	\
 +	test_archive_read_next_header_raw.c	\
 +	test_archive_read_open2.c		\
 +	test_archive_read_set_filter_option.c	\
 +	test_archive_read_set_format_option.c	\
 +	test_archive_read_set_option.c		\
 +	test_archive_read_set_options.c		\
 +	test_archive_read_support.c		\
 +	test_archive_set_error.c		\
 +	test_archive_string.c			\
 +	test_archive_string_conversion.c	\
 +	test_archive_write_add_filter_by_name.c	\
 +	test_archive_write_set_filter_option.c	\
 +	test_archive_write_set_format_by_name.c	\
 +	test_archive_write_set_format_filter_by_ext.c \
 +	test_archive_write_set_format_option.c	\
 +	test_archive_write_set_option.c		\
 +	test_archive_write_set_options.c	\
 +	test_archive_write_set_passphrase.c	\
 +	test_bad_fd.c				\
 +	test_compat_bzip2.c			\
 +	test_compat_cpio.c			\
 +	test_compat_gtar.c			\
 +	test_compat_gzip.c			\
 +	test_compat_lz4.c			\
 +	test_compat_lzip.c			\
 +	test_compat_lzma.c			\
 +	test_compat_lzop.c			\
 +	test_compat_mac.c			\
 +	test_compat_perl_archive_tar.c		\
 +	test_compat_plexus_archiver_tar.c	\
 +	test_compat_solaris_tar_acl.c		\
 +	test_compat_solaris_pax_sparse.c	\
 +	test_compat_star_acl.c			\
 +	test_compat_tar_directory.c		\
 +	test_compat_tar_hardlink.c		\
 +	test_compat_uudecode.c			\
 +	test_compat_uudecode_large.c		\
 +	test_compat_xz.c			\
 +	test_compat_zip.c			\
 +	test_compat_zstd.c			\
 +	test_empty_write.c			\
 +	test_entry.c				\
 +	test_entry_strmode.c			\
 +	test_extattr_freebsd.c			\
 +	test_filter_count.c			\
 +	test_gnutar_filename_encoding.c		\
 +	test_link_resolver.c			\
 +	test_open_fd.c				\
 +	test_open_failure.c			\
 +	test_open_file.c			\
 +	test_open_filename.c			\
 +	test_pax_filename_encoding.c		\
 +	test_pax_xattr_header.c			\
 +	test_read_data_large.c			\
 +	test_read_disk.c			\
 +	test_read_disk_directory_traversals.c	\
 +	test_read_disk_entry_from_file.c	\
 +	test_read_extract.c			\
 +	test_read_file_nonexistent.c		\
 +	test_read_filter_compress.c		\
 +	test_read_filter_grzip.c		\
 +	test_read_filter_lrzip.c		\
 +	test_read_filter_lzop.c			\
 +	test_read_filter_lzop_multiple_parts.c	\
 +	test_read_filter_program.c		\
 +	test_read_filter_program_signature.c	\
 +	test_read_filter_uudecode.c		\
 +	test_read_filter_uudecode_raw.c		\
 +	test_read_format_7zip.c			\
 +	test_read_format_7zip_encryption_data.c \
 +	test_read_format_7zip_encryption_header.c	\
 +	test_read_format_7zip_encryption_partially.c	\
 +	test_read_format_7zip_malformed.c	\
 +	test_read_format_7zip_packinfo_digests.c	\
 +	test_read_format_ar.c			\
 +	test_read_format_cab.c			\
 +	test_read_format_cab_filename.c		\
 +	test_read_format_cpio_afio.c		\
 +	test_read_format_cpio_bin.c		\
 +	test_read_format_cpio_bin_Z.c		\
 +	test_read_format_cpio_bin_be.c		\
 +	test_read_format_cpio_bin_bz2.c		\
 +	test_read_format_cpio_bin_gz.c		\
 +	test_read_format_cpio_bin_le.c		\
 +	test_read_format_cpio_bin_lzip.c	\
 +	test_read_format_cpio_bin_lzma.c	\
 +	test_read_format_cpio_bin_xz.c		\
 +	test_read_format_cpio_filename.c	\
 +	test_read_format_cpio_odc.c		\
 +	test_read_format_cpio_svr4_gzip.c	\
 +	test_read_format_cpio_svr4c_Z.c		\
 +	test_read_format_cpio_svr4_bzip2_rpm.c	\
 +	test_read_format_cpio_svr4_gzip_rpm.c	\
 +	test_read_format_empty.c		\
 +	test_read_format_gtar_filename.c	\
 +	test_read_format_gtar_gz.c		\
 +	test_read_format_gtar_lzma.c		\
 +	test_read_format_gtar_sparse.c		\
 +	test_read_format_gtar_sparse_skip_entry.c \
 +	test_read_format_iso_Z.c		\
 +	test_read_format_iso_multi_extent.c	\
 +	test_read_format_iso_xorriso.c		\
 +	test_read_format_isorr_rr_moved.c	\
 +	test_read_format_isojoliet_bz2.c	\
 +	test_read_format_isojoliet_long.c	\
 +	test_read_format_isojoliet_rr.c		\
 +	test_read_format_isojoliet_versioned.c	\
 +	test_read_format_isorr_bz2.c		\
 +	test_read_format_isorr_ce.c		\
 +	test_read_format_isorr_new_bz2.c	\
 +	test_read_format_isozisofs_bz2.c	\
 +	test_read_format_lha.c			\
 +	test_read_format_lha_bugfix_0.c		\
 +	test_read_format_lha_filename.c		\
 +	test_read_format_lha_filename_utf16.c	\
 +	test_read_format_mtree.c		\
 +	test_read_format_mtree_crash747.c	\
 +	test_read_format_pax_bz2.c		\
 +	test_read_format_rar.c			\
 +	test_read_format_rar5.c			\
 +	test_read_format_rar_encryption_data.c	\
 +	test_read_format_rar_encryption_header.c	\
 +	test_read_format_rar_encryption_partially.c	\
 +	test_read_format_rar_filter.c		\
 +	test_read_format_rar_invalid1.c		\
 +	test_read_format_raw.c			\
 +	test_read_format_tar.c			\
 +	test_read_format_tar_concatenated.c	\
 +	test_read_format_tar_empty_filename.c	\
 +	test_read_format_tar_empty_pax.c	\
 +	test_read_format_tar_empty_with_gnulabel.c	\
 +	test_read_format_tar_filename.c		\
 +	test_read_format_tar_invalid_pax_size.c \
 +	test_read_format_tbz.c			\
 +	test_read_format_tgz.c			\
 +	test_read_format_tlz.c			\
 +	test_read_format_txz.c			\
 +	test_read_format_tz.c			\
 +	test_read_format_ustar_filename.c	\
 +	test_read_format_warc.c			\
 +	test_read_format_xar.c			\
++	test_read_format_xar_doublelink.c	\
 +	test_read_format_zip.c			\
 +	test_read_format_zip_7075_utf8_paths.c	\
 +	test_read_format_zip_comment_stored.c	\
 +	test_read_format_zip_encryption_data.c	\
 +	test_read_format_zip_encryption_header.c	\
 +	test_read_format_zip_encryption_partially.c	\
 +	test_read_format_zip_extra_padding.c	\
 +	test_read_format_zip_filename.c		\
 +	test_read_format_zip_high_compression.c	\
 +	test_read_format_zip_jar.c		\
 +	test_read_format_zip_mac_metadata.c	\
 +	test_read_format_zip_malformed.c	\
 +	test_read_format_zip_msdos.c		\
 +	test_read_format_zip_nested.c		\
 +	test_read_format_zip_nofiletype.c	\
 +	test_read_format_zip_padded.c		\
 +	test_read_format_zip_sfx.c		\
 +	test_read_format_zip_traditional_encryption_data.c	\
 +	test_read_format_zip_winzip_aes.c	\
 +	test_read_format_zip_winzip_aes_large.c	\
 +	test_read_format_zip_with_invalid_traditional_eocd.c	\
 +	test_read_format_zip_zip64.c		\
 +	test_read_large.c			\
 +	test_read_pax_xattr_rht_security_selinux.c	\
 +	test_read_pax_xattr_schily.c		\
 +	test_read_pax_truncated.c		\
 +	test_read_position.c			\
 +	test_read_set_format.c			\
 +	test_read_too_many_filters.c		\
 +	test_read_truncated.c			\
 +	test_read_truncated_filter.c		\
 +	test_short_writes.c			\
 +	test_sparse_basic.c			\
 +	test_tar_filenames.c			\
 +	test_tar_large.c			\
 +	test_warn_missing_hardlink_target.c	\
 +	test_ustar_filenames.c			\
 +	test_ustar_filename_encoding.c		\
 +	test_write_disk.c			\
 +	test_write_disk_appledouble.c		\
 +	test_write_disk_failures.c		\
 +	test_write_disk_fixup.c			\
 +	test_write_disk_hardlink.c		\
 +	test_write_disk_hfs_compression.c	\
 +	test_write_disk_lookup.c		\
 +	test_write_disk_mac_metadata.c		\
 +	test_write_disk_no_hfs_compression.c	\
 +	test_write_disk_perms.c			\
 +	test_write_disk_secure.c		\
 +	test_write_disk_secure744.c		\
 +	test_write_disk_secure745.c		\
 +	test_write_disk_secure746.c		\
 +	test_write_disk_sparse.c		\
 +	test_write_disk_symlink.c		\
 +	test_write_disk_times.c			\
 +	test_write_filter_b64encode.c		\
 +	test_write_filter_bzip2.c		\
 +	test_write_filter_compress.c		\
 +	test_write_filter_gzip.c		\
 +	test_write_filter_gzip_timestamp.c	\
 +	test_write_filter_lrzip.c		\
 +	test_write_filter_lz4.c			\
 +	test_write_filter_lzip.c		\
 +	test_write_filter_lzma.c		\
 +	test_write_filter_lzop.c		\
 +	test_write_filter_program.c		\
 +	test_write_filter_uuencode.c		\
 +	test_write_filter_xz.c			\
 +	test_write_filter_zstd.c		\
 +	test_write_format_7zip.c		\
 +	test_write_format_7zip_empty.c		\
 +	test_write_format_7zip_large.c		\
 +	test_write_format_ar.c			\
 +	test_write_format_cpio.c		\
 +	test_write_format_cpio_empty.c		\
 +	test_write_format_cpio_newc.c		\
 +	test_write_format_cpio_odc.c		\
 +	test_write_format_gnutar.c		\
 +	test_write_format_gnutar_filenames.c	\
 +	test_write_format_iso9660.c		\
 +	test_write_format_iso9660_boot.c	\
 +	test_write_format_iso9660_empty.c	\
 +	test_write_format_iso9660_filename.c	\
 +	test_write_format_iso9660_zisofs.c	\
 +	test_write_format_mtree.c		\
 +	test_write_format_mtree_absolute_path.c	\
 +	test_write_format_mtree_classic.c	\
 +	test_write_format_mtree_classic_indent.c	\
 +	test_write_format_mtree_fflags.c	\
 +	test_write_format_mtree_no_separator.c	\
 +	test_write_format_mtree_quoted_filename.c	\
 +	test_write_format_pax.c			\
 +	test_write_format_raw.c			\
 +	test_write_format_raw_b64.c		\
 +	test_write_format_shar_empty.c		\
 +	test_write_format_tar.c			\
 +	test_write_format_tar_empty.c		\
 +	test_write_format_tar_sparse.c		\
 +	test_write_format_tar_ustar.c		\
 +	test_write_format_tar_v7tar.c		\
 +	test_write_format_warc.c		\
 +	test_write_format_warc_empty.c		\
 +	test_write_format_xar.c			\
 +	test_write_format_xar_empty.c		\
 +	test_write_format_zip.c			\
 +	test_write_format_zip_compression_store.c	\
 +	test_write_format_zip_empty.c		\
 +	test_write_format_zip_empty_zip64.c	\
 +	test_write_format_zip_entry_size_unset.c	\
 +	test_write_format_zip_file.c		\
 +	test_write_format_zip_file_zip64.c	\
 +	test_write_format_zip_large.c		\
 +	test_write_format_zip_zip64.c		\
 +	test_write_format_zip64_stream.c	\
 +	test_write_format_zip_stream.c		\
 +	test_write_open_memory.c		\
 +	test_write_read_format_zip.c		\
 +	test_xattr_platform.c			\
 +	test_zip_filename_encoding.c
 +
 +# Deterministic failures:
 +# Fails with `test_read_disk_directory_traversals.c:1094: File at has atime 886622, 1443306049 seconds ago`
 +BROKEN_TESTS+=			test_read_disk_directory_traversals
 +
 +.if 0
 +# test_fuzz.c is not a real test, but rather a simple fuzz-test using random().
 +# Since this is not a regression/unit test, we don't include it by default.
 +# If you would still like to include it, comment out the `.if 0`.
 +TEST_SCRCS+=	test_fuzz.c
 +${PACKAGE}FILES+=	test_fuzz.cab.uu
 +${PACKAGE}FILES+=	test_fuzz.lzh.uu
 +${PACKAGE}FILES+=	test_fuzz_1.iso.Z.uu
 +# Non-deterministic failures:
 +# (Times out?) [and] crashes
 +BROKEN_TESTS+=			test_fuzz_rar
 +.endif
 +
 +# https://bugs.freebsd.org/240683
 +BROKEN_TESTS+=			test_write_filter_zstd
 +
 +# Build the test program.
 +SRCS.libarchive_test=		\
 +	${TESTS_SRCS}		\
 +	read_open_memory.c	\
 +	list.h
 +
 +LIBADD.libarchive_test=	archive
 +
 +.PATH: ${_LIBARCHIVEDIR}/test_utils
 +SRCS.libarchive_test+=	test_main.c	\
 +			test_utils.c
 +
 +# list.h is just a list of all tests, as indicated by DEFINE_TEST macro lines
 +list.h: ${TESTS_SRCS} Makefile
 +	@(cd ${_LIBARCHIVEDIR}/libarchive/test && \
 +	grep -E -h ^DEFINE_TEST ${.ALLSRC:N*Makefile} | \
 +	    egrep -v '${BROKEN_TESTS:tW:C/ /|/g}') > ${.TARGET}.tmp
 +	@mv ${.TARGET}.tmp ${.TARGET}
 +
 +CLEANTESTS+=	list.h list.h.tmp
 +${PACKAGE}FILES+=	README
 +${PACKAGE}FILES+=	test_acl_pax_posix1e.tar.uu
 +${PACKAGE}FILES+=	test_acl_pax_nfs4.tar.uu
 +${PACKAGE}FILES+=	test_archive_string_conversion.txt.Z.uu
 +${PACKAGE}FILES+=	test_compat_bzip2_1.tbz.uu
 +${PACKAGE}FILES+=	test_compat_bzip2_2.tbz.uu
 +${PACKAGE}FILES+=	test_compat_cpio_1.cpio.uu
 +${PACKAGE}FILES+=	test_compat_gtar_1.tar.uu
 +${PACKAGE}FILES+=	test_compat_gtar_2.tar.uu
 +${PACKAGE}FILES+=	test_compat_gzip_1.tgz.uu
 +${PACKAGE}FILES+=	test_compat_gzip_2.tgz.uu
 +${PACKAGE}FILES+=	test_compat_lz4_1.tar.lz4.uu
 +${PACKAGE}FILES+=	test_compat_lz4_2.tar.lz4.uu
 +${PACKAGE}FILES+=	test_compat_lz4_3.tar.lz4.uu
 +${PACKAGE}FILES+=	test_compat_lz4_B4.tar.lz4.uu
 +${PACKAGE}FILES+=	test_compat_lz4_B4BD.tar.lz4.uu
 +${PACKAGE}FILES+=	test_compat_lz4_B4BDBX.tar.lz4.uu
 +${PACKAGE}FILES+=	test_compat_lz4_B5.tar.lz4.uu
 +${PACKAGE}FILES+=	test_compat_lz4_B5BD.tar.lz4.uu
 +${PACKAGE}FILES+=	test_compat_lz4_B6.tar.lz4.uu
 +${PACKAGE}FILES+=	test_compat_lz4_B6BD.tar.lz4.uu
 +${PACKAGE}FILES+=	test_compat_lz4_B7.tar.lz4.uu
 +${PACKAGE}FILES+=	test_compat_lz4_B7BD.tar.lz4.uu
 +${PACKAGE}FILES+=	test_compat_lzip_1.tlz.uu
 +${PACKAGE}FILES+=	test_compat_lzip_2.tlz.uu
 +${PACKAGE}FILES+=	test_compat_lzip_3.lz.uu
 +${PACKAGE}FILES+=	test_compat_lzip_4.tlz.uu
 +${PACKAGE}FILES+=	test_compat_lzma_1.tlz.uu
 +${PACKAGE}FILES+=	test_compat_lzma_2.tlz.uu
 +${PACKAGE}FILES+=	test_compat_lzma_3.tlz.uu
 +${PACKAGE}FILES+=	test_compat_lzop_1.tar.lzo.uu
 +${PACKAGE}FILES+=	test_compat_lzop_2.tar.lzo.uu
 +${PACKAGE}FILES+=	test_compat_lzop_3.tar.lzo.uu
 +${PACKAGE}FILES+=	test_compat_mac-1.tar.Z.uu
 +${PACKAGE}FILES+=	test_compat_mac-2.tar.Z.uu
 +${PACKAGE}FILES+=	test_compat_perl_archive_tar.tar.uu
 +${PACKAGE}FILES+=	test_compat_plexus_archiver_tar.tar.uu
 +${PACKAGE}FILES+=	test_compat_solaris_pax_sparse_1.pax.Z.uu
 +${PACKAGE}FILES+=	test_compat_solaris_pax_sparse_2.pax.Z.uu
 +${PACKAGE}FILES+=	test_compat_solaris_tar_acl.tar.uu
 +${PACKAGE}FILES+=	test_compat_star_acl_nfs4.tar.uu
 +${PACKAGE}FILES+=	test_compat_star_acl_posix1e.tar.uu
 +${PACKAGE}FILES+=	test_compat_tar_directory_1.tar.uu
 +${PACKAGE}FILES+=	test_compat_tar_hardlink_1.tar.uu
 +${PACKAGE}FILES+=	test_compat_uudecode_large.tar.Z.uu
 +${PACKAGE}FILES+=	test_compat_xz_1.txz.uu
 +${PACKAGE}FILES+=	test_compat_zip_1.zip.uu
 +${PACKAGE}FILES+=	test_compat_zip_2.zip.uu
 +${PACKAGE}FILES+=	test_compat_zip_3.zip.uu
 +${PACKAGE}FILES+=	test_compat_zip_4.zip.uu
 +${PACKAGE}FILES+=	test_compat_zip_5.zip.uu
 +${PACKAGE}FILES+=	test_compat_zip_6.zip.uu
 +${PACKAGE}FILES+=	test_compat_zip_7.xps.uu
 +${PACKAGE}FILES+=	test_compat_zip_8.zip.uu
 +${PACKAGE}FILES+=	test_compat_zstd_1.tar.zst.uu
 +${PACKAGE}FILES+=	test_compat_zstd_2.tar.zst.uu
 +${PACKAGE}FILES+=	test_pax_filename_encoding.tar.uu
 +${PACKAGE}FILES+=	test_pax_xattr_header_all.tar.uu
 +${PACKAGE}FILES+=	test_pax_xattr_header_libarchive.tar.uu
 +${PACKAGE}FILES+=	test_pax_xattr_header_schily.tar.uu	
 +${PACKAGE}FILES+=	test_rar_multivolume_multiple_files.part1.rar.uu
 +${PACKAGE}FILES+=	test_rar_multivolume_multiple_files.part2.rar.uu
 +${PACKAGE}FILES+=	test_rar_multivolume_multiple_files.part3.rar.uu
 +${PACKAGE}FILES+=	test_rar_multivolume_multiple_files.part4.rar.uu
 +${PACKAGE}FILES+=	test_rar_multivolume_multiple_files.part5.rar.uu
 +${PACKAGE}FILES+=	test_rar_multivolume_multiple_files.part6.rar.uu
 +${PACKAGE}FILES+=	test_rar_multivolume_single_file.part1.rar.uu
 +${PACKAGE}FILES+=	test_rar_multivolume_single_file.part2.rar.uu
 +${PACKAGE}FILES+=	test_rar_multivolume_single_file.part3.rar.uu
 +${PACKAGE}FILES+=	test_rar_multivolume_uncompressed_files.part01.rar.uu
 +${PACKAGE}FILES+=	test_rar_multivolume_uncompressed_files.part02.rar.uu
 +${PACKAGE}FILES+=	test_rar_multivolume_uncompressed_files.part03.rar.uu
 +${PACKAGE}FILES+=	test_rar_multivolume_uncompressed_files.part04.rar.uu
 +${PACKAGE}FILES+=	test_rar_multivolume_uncompressed_files.part05.rar.uu
 +${PACKAGE}FILES+=	test_rar_multivolume_uncompressed_files.part06.rar.uu
 +${PACKAGE}FILES+=	test_rar_multivolume_uncompressed_files.part07.rar.uu
 +${PACKAGE}FILES+=	test_rar_multivolume_uncompressed_files.part08.rar.uu
 +${PACKAGE}FILES+=	test_rar_multivolume_uncompressed_files.part09.rar.uu
 +${PACKAGE}FILES+=	test_rar_multivolume_uncompressed_files.part10.rar.uu
 +${PACKAGE}FILES+=	test_read_filter_grzip.tar.grz.uu
 +${PACKAGE}FILES+=	test_read_filter_lrzip.tar.lrz.uu
 +${PACKAGE}FILES+=	test_read_filter_lzop.tar.lzo.uu
 +${PACKAGE}FILES+=	test_read_filter_lzop_multiple_parts.tar.lzo.uu
 +${PACKAGE}FILES+=	test_read_filter_uudecode_base64_raw.uu
 +${PACKAGE}FILES+=	test_read_filter_uudecode_raw.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_bcj2_bzip2.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_bcj2_copy_1.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_bcj2_copy_2.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_bcj2_copy_lzma.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_bcj2_deflate.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_deflate_arm64.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_bcj2_lzma1_1.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_bcj2_lzma1_2.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_bcj2_lzma2_1.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_bcj2_lzma2_2.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_bcj_bzip2.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_bcj_copy.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_bcj_deflate.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_bcj_lzma1.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_bcj_lzma2.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_bzip2.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_copy.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_copy_2.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_deflate.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_delta_lzma1.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_delta_lzma2.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_delta4_lzma1.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_delta4_lzma2.7z.uu	
 +${PACKAGE}FILES+=	test_read_format_7zip_empty_archive.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_empty_file.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_encryption.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_encryption_header.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_encryption_partially.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_lzma1.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_lzma1_2.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_lzma1_lzma2.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_lzma2.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_lzma2_arm.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_lzma2_arm64.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_malformed.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_malformed2.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_packinfo_digests.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_ppmd.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_solid_zstd.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_symbolic_name.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_zstd.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_zstd_arm.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_zstd_bcj.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_zstd_nobcj.7z.uu
 +${PACKAGE}FILES+=	test_read_format_7zip_win_attrib.7z.uu
 +${PACKAGE}FILES+=	test_read_format_ar.ar.uu
 +${PACKAGE}FILES+=	test_read_format_cab_1.cab.uu
 +${PACKAGE}FILES+=	test_read_format_cab_2.cab.uu
 +${PACKAGE}FILES+=	test_read_format_cab_3.cab.uu
 +${PACKAGE}FILES+=	test_read_format_cab_filename_cp932.cab.uu
 +${PACKAGE}FILES+=	test_read_format_cpio_bin_be.cpio.uu
 +${PACKAGE}FILES+=	test_read_format_cpio_bin_le.cpio.uu
 +${PACKAGE}FILES+=	test_read_format_cpio_filename_cp866.cpio.uu
 +${PACKAGE}FILES+=	test_read_format_cpio_filename_eucjp.cpio.uu
 +${PACKAGE}FILES+=	test_read_format_cpio_filename_koi8r.cpio.uu
 +${PACKAGE}FILES+=	test_read_format_cpio_filename_utf8_jp.cpio.uu
 +${PACKAGE}FILES+=	test_read_format_cpio_filename_utf8_ru.cpio.uu
 +${PACKAGE}FILES+=	test_read_format_cpio_svr4_bzip2_rpm.rpm.uu
 +${PACKAGE}FILES+=	test_read_format_cpio_svr4_gzip_rpm.rpm.uu
 +${PACKAGE}FILES+=	test_read_format_gtar_filename_cp866.tar.Z.uu
 +${PACKAGE}FILES+=	test_read_format_gtar_filename_eucjp.tar.Z.uu
 +${PACKAGE}FILES+=	test_read_format_gtar_filename_koi8r.tar.Z.uu
 +${PACKAGE}FILES+=	test_read_format_gtar_sparse_1_13.tar.uu
 +${PACKAGE}FILES+=	test_read_format_gtar_sparse_1_17.tar.uu
 +${PACKAGE}FILES+=	test_read_format_gtar_sparse_1_17_posix00.tar.uu
 +${PACKAGE}FILES+=	test_read_format_gtar_sparse_1_17_posix01.tar.uu
 +${PACKAGE}FILES+=	test_read_format_gtar_sparse_1_17_posix10.tar.uu
 +${PACKAGE}FILES+=	test_read_format_gtar_sparse_1_17_posix10_modified.tar.uu
 +${PACKAGE}FILES+=	test_read_format_gtar_sparse_skip_entry.tar.Z.uu
 +${PACKAGE}FILES+=	test_read_format_iso.iso.Z.uu
 +${PACKAGE}FILES+=	test_read_format_iso_2.iso.Z.uu
 +${PACKAGE}FILES+=	test_read_format_iso_joliet.iso.Z.uu
 +${PACKAGE}FILES+=	test_read_format_iso_joliet_by_nero.iso.Z.uu
 +${PACKAGE}FILES+=	test_read_format_iso_joliet_long.iso.Z.uu
 +${PACKAGE}FILES+=	test_read_format_iso_joliet_rockridge.iso.Z.uu
 +${PACKAGE}FILES+=	test_read_format_iso_multi_extent.iso.Z.uu
 +${PACKAGE}FILES+=	test_read_format_iso_rockridge.iso.Z.uu
 +${PACKAGE}FILES+=	test_read_format_iso_rockridge_ce.iso.Z.uu
 +${PACKAGE}FILES+=	test_read_format_iso_rockridge_new.iso.Z.uu
 +${PACKAGE}FILES+=	test_read_format_iso_rockridge_rr_moved.iso.Z.uu
 +${PACKAGE}FILES+=	test_read_format_iso_xorriso.iso.Z.uu
 +${PACKAGE}FILES+=	test_read_format_iso_zisofs.iso.Z.uu
 +${PACKAGE}FILES+=	test_read_format_lha_bugfix_0.lzh.uu
 +${PACKAGE}FILES+=	test_read_format_lha_filename_cp932.lzh.uu
 +${PACKAGE}FILES+=	test_read_format_lha_filename_utf16.lzh.uu
 +${PACKAGE}FILES+=	test_read_format_lha_header0.lzh.uu
 +${PACKAGE}FILES+=	test_read_format_lha_header1.lzh.uu
 +${PACKAGE}FILES+=	test_read_format_lha_header2.lzh.uu
 +${PACKAGE}FILES+=	test_read_format_lha_header3.lzh.uu
 +${PACKAGE}FILES+=	test_read_format_lha_lh0.lzh.uu
 +${PACKAGE}FILES+=	test_read_format_lha_lh6.lzh.uu
 +${PACKAGE}FILES+=	test_read_format_lha_lh7.lzh.uu
 +${PACKAGE}FILES+=	test_read_format_lha_withjunk.lzh.uu
 +${PACKAGE}FILES+=	test_read_format_mtree.mtree.uu
 +${PACKAGE}FILES+=	test_read_format_mtree_crash747.mtree.bz2.uu
 +${PACKAGE}FILES+=	test_read_format_mtree_nomagic.mtree.uu
 +${PACKAGE}FILES+=	test_read_format_mtree_nomagic2.mtree.uu
 +${PACKAGE}FILES+=	test_read_format_mtree_nomagic3.mtree.uu
 +${PACKAGE}FILES+=	test_read_format_mtree_noprint.mtree.uu
 +${PACKAGE}FILES+=	test_read_format_rar.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_binary_data.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_compress_best.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_compress_normal.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_encryption_data.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_encryption_header.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_encryption_partially.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_filter.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_invalid1.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_multi_lzss_blocks.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_multivolume.part0001.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_multivolume.part0002.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_multivolume.part0003.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_multivolume.part0004.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_noeof.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_ppmd_lzss_conversion.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_ppmd_use_after_free.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_ppmd_use_after_free2.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_sfx.exe.uu
 +${PACKAGE}FILES+=	test_read_format_rar_subblock.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_unicode.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar_windows.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_arm.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_arm_filter_on_window_boundary.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_bad_window_sz_in_mltarc_file.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_blake2.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_block_size_is_too_small.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_compressed.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_decode_number_out_of_bounds_read.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_different_solid_window_size.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_different_window_size.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_different_winsize_on_merge.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_distance_overflow.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_extra_field_version.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_fileattr.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_hardlink.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_invalid_dict_reference.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_leftshift1.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_leftshift2.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_multiarchive.part01.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_multiarchive.part02.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_multiarchive.part03.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_multiarchive.part04.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_multiarchive.part05.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_multiarchive.part06.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_multiarchive.part07.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_multiarchive.part08.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_multiarchive_solid.part01.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_multiarchive_solid.part02.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_multiarchive_solid.part03.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_multiarchive_solid.part04.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_multiple_files.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_multiple_files_solid.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_nonempty_dir_stream.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_owner.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_readtables_overflow.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_sfx.exe.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_solid.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_stored.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_stored_manyfiles.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_symlink.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_truncated_huff.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_unicode.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_win32.rar.uu
 +${PACKAGE}FILES+=	test_read_format_rar5_window_buf_and_size_desync.rar.uu
 +${PACKAGE}FILES+=	test_read_format_raw.bufr.uu
 +${PACKAGE}FILES+=	test_read_format_raw.data.Z.uu
 +${PACKAGE}FILES+=	test_read_format_raw.data.gz.uu
 +${PACKAGE}FILES+=	test_read_format_raw.data.uu
 +${PACKAGE}FILES+=	test_read_format_tar_concatenated.tar.uu
 +${PACKAGE}FILES+=	test_read_format_tar_empty_filename.tar.uu
 +${PACKAGE}FILES+=	test_read_format_tar_empty_with_gnulabel.tar.uu
 +${PACKAGE}FILES+=	test_read_format_tar_empty_pax.tar.Z.uu
 +${PACKAGE}FILES+=	test_read_format_tar_filename_koi8r.tar.Z.uu
 +${PACKAGE}FILES+=	test_read_format_tar_invalid_pax_size.tar.uu
 +${PACKAGE}FILES+=	test_read_format_ustar_filename_cp866.tar.Z.uu
 +${PACKAGE}FILES+=	test_read_format_ustar_filename_eucjp.tar.Z.uu
 +${PACKAGE}FILES+=	test_read_format_ustar_filename_koi8r.tar.Z.uu
 +${PACKAGE}FILES+=	test_read_format_warc.warc.uu
++${PACKAGE}FILES+=	test_read_format_xar_doublelink.xar.uu
 +${PACKAGE}FILES+=	test_read_format_zip.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_7075_utf8_paths.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_7z_deflate.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_7z_lzma.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_bz2_hang.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_bzip2.zipx.uu
 +${PACKAGE}FILES+=	test_read_format_zip_bzip2_multi.zipx.uu
 +${PACKAGE}FILES+=	test_read_format_zip_comment_stored_1.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_comment_stored_2.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_encryption_data.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_encryption_header.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_encryption_partially.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_extra_padding.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_filename_cp866.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_filename_cp932.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_filename_koi8r.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_filename_utf8_jp.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_filename_utf8_ru.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_filename_utf8_ru2.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_high_compression.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_jar.jar.uu
 +${PACKAGE}FILES+=	test_read_format_zip_length_at_end.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_lzma_alone_leak.zipx.uu
 +${PACKAGE}FILES+=	test_read_format_zip_lzma.zipx.uu
 +${PACKAGE}FILES+=	test_read_format_zip_lzma_multi.zipx.uu
 +${PACKAGE}FILES+=	test_read_format_zip_lzma_stream_end.zipx.uu
 +${PACKAGE}FILES+=	test_read_format_zip_mac_metadata.zip.uu
 +${PACKAGE}FILES+=	test_read_format_zip_malformed1.zip.uu
*** 46 LINES SKIPPED ***