git: eb5165bb4911 - main - libarchive: merge from vendor branch
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Apr 2026 14:06:12 UTC
The branch main has been updated by mm:
URL: https://cgit.FreeBSD.org/src/commit/?id=eb5165bb491138f60d9004bc4c781490016d9288
commit eb5165bb491138f60d9004bc4c781490016d9288
Merge: 26740e8f80da f2cd95a37200
Author: Martin Matuska <mm@FreeBSD.org>
AuthorDate: 2026-04-13 13:47:17 +0000
Commit: Martin Matuska <mm@FreeBSD.org>
CommitDate: 2026-04-13 13:47:17 +0000
libarchive: merge from vendor branch
libarchive 3.8.7
Important bugfixes:
#2871 libarchive: fix handling of option failures
#2897 iso9660: fix undefined behavior
#2898 RAR: fix LZSS window size mismatch after PPMd block
#2900 CAB: fix NULL pointer dereference during skip
#2911 libarchive: do not continue with truncated numbers
#2919 CAB: Fix Heap OOB Write in CAB LZX decoder
#2934 iso9660: fix posibble heap buffer overflow on 32-bit systems
#2939 cpio: Fix -R memory leak
#2947 libarchive: lzop and grzip filter support
Important bugfixes between 3.8.5 and 3.8.6:
#2860 bsdunzip: fix ISO week year and Gregorian year confusion
#2864 7zip: ix SEGV in check_7zip_header_in_sfx via ELF offset validation
#2875 7zip: fix out-of-bounds access on ELF 64-bit header
#2877 RAR5 reader: fix infinite loop in rar5 decompression
#2878 mtree reader: Fix file descriptor leak in mtree parser cleanup
(CWE-775)
#2892 RAR5 reader: fix potential memory leak
#2893 RAR5: fix SIGSEGV when archive_read_support_format_rar5 is called
twice
#2895 CAB reader: fix memory leak on repeated calls to
archive_read_support_format_cab
Obtained from: libarchive
Vendor commit: ded82291ab41d5e355831b96b0e1ff49e24d8939
MFC after: 1 week
contrib/libarchive/NEWS | 4 +
contrib/libarchive/README.md | 9 +-
contrib/libarchive/cpio/cmdline.c | 15 +-
contrib/libarchive/cpio/cpio.c | 123 ++-
contrib/libarchive/cpio/cpio.h | 2 -
contrib/libarchive/cpio/test/test_format_newc.c | 7 +
contrib/libarchive/libarchive/archive.h | 4 +-
contrib/libarchive/libarchive/archive_acl.c | 6 +-
.../libarchive/libarchive/archive_check_magic.c | 4 +-
.../libarchive/archive_cryptor_private.h | 4 +
contrib/libarchive/libarchive/archive_entry.h | 2 +-
contrib/libarchive/libarchive/archive_hmac.c | 6 +
contrib/libarchive/libarchive/archive_options.c | 4 +-
contrib/libarchive/libarchive/archive_pathmatch.c | 4 +-
contrib/libarchive/libarchive/archive_ppmd8.c | 22 +-
.../libarchive/libarchive/archive_ppmd8_private.h | 25 -
contrib/libarchive/libarchive/archive_read.c | 12 +-
.../libarchive/archive_read_append_filter.c | 4 +
.../libarchive/archive_read_disk_posix.c | 6 +-
.../libarchive/archive_read_open_filename.c | 7 +-
.../libarchive/archive_read_support_filter_grzip.c | 2 +-
.../libarchive/archive_read_support_filter_lz4.c | 4 +-
.../libarchive/archive_read_support_filter_lzop.c | 2 +-
.../archive_read_support_filter_program.c | 2 +
.../libarchive/archive_read_support_format_7zip.c | 24 +-
.../libarchive/archive_read_support_format_cab.c | 24 +-
.../libarchive/archive_read_support_format_cpio.c | 4 +-
.../archive_read_support_format_iso9660.c | 26 +-
.../libarchive/archive_read_support_format_lha.c | 11 +-
.../libarchive/archive_read_support_format_mtree.c | 7 +-
.../libarchive/archive_read_support_format_rar.c | 73 +-
.../libarchive/archive_read_support_format_rar5.c | 45 +-
.../libarchive/archive_read_support_format_tar.c | 6 +-
.../libarchive/archive_read_support_format_xar.c | 14 +-
.../libarchive/archive_read_support_format_zip.c | 22 +-
contrib/libarchive/libarchive/archive_string.c | 16 +-
contrib/libarchive/libarchive/archive_write.c | 2 +-
.../archive_write_add_filter_b64encode.c | 22 +-
.../libarchive/archive_write_add_filter_bzip2.c | 7 +-
.../libarchive/archive_write_add_filter_gzip.c | 12 +-
.../libarchive/archive_write_add_filter_lrzip.c | 21 +-
.../libarchive/archive_write_add_filter_lz4.c | 14 +-
.../libarchive/archive_write_add_filter_lzop.c | 7 +-
.../libarchive/archive_write_add_filter_uuencode.c | 22 +-
.../libarchive/archive_write_add_filter_xz.c | 27 +-
.../libarchive/archive_write_add_filter_zstd.c | 52 +-
.../libarchive/archive_write_disk_posix.c | 30 +-
.../libarchive/archive_write_set_format_7zip.c | 9 +-
.../archive_write_set_format_cpio_binary.c | 4 +-
.../archive_write_set_format_cpio_newc.c | 2 +-
.../libarchive/archive_write_set_format_cpio_odc.c | 2 +-
.../libarchive/archive_write_set_format_gnutar.c | 34 +-
.../libarchive/archive_write_set_format_iso9660.c | 18 +-
.../libarchive/archive_write_set_format_mtree.c | 2 +-
.../libarchive/archive_write_set_format_pax.c | 6 +-
.../libarchive/archive_write_set_format_ustar.c | 27 +-
.../libarchive/archive_write_set_format_v7tar.c | 27 +-
.../libarchive/archive_write_set_format_xar.c | 6 +-
.../libarchive/archive_write_set_format_zip.c | 49 +-
contrib/libarchive/libarchive/test/test_acl_text.c | 23 +
.../libarchive/test/test_archive_pathmatch.c | 18 +
.../test/test_archive_string_conversion.c | 135 +++
.../test/test_gnutar_filename_encoding.c | 40 +
.../libarchive/test/test_read_format_7zip.c | 26 +
.../test/test_read_format_7zip_malformed.c | 17 +
.../test/test_read_format_7zip_malformed3.7z.uu | 24 +
.../test_read_format_7zip_sfx_elf64trunc.elf.uu | 5 +
.../libarchive/test/test_read_format_cab_lzx_oob.c | 45 +
.../test/test_read_format_cab_lzx_oob.cab.uu | 11 +
.../test/test_read_format_cab_skip_malformed.c | 41 +
.../test_read_format_cab_skip_malformed.cab.uu | 95 ++
.../test/test_read_format_iso_zisofs_overflow.c | 104 ++
.../test_read_format_iso_zisofs_overflow.iso.uu | 1096 ++++++++++++++++++++
.../test/test_read_format_lha_oversize_header.c | 50 +
.../test_read_format_lha_oversize_header.lzh.uu | 60 ++
.../test/test_read_format_rar5_loop_bug.c | 53 +
.../test/test_read_format_rar5_loop_bug.rar.uu | 189 ++++
.../libarchive/test/test_read_set_format.c | 34 +
.../libarchive/test/test_ustar_filename_encoding.c | 40 +
.../libarchive/test/test_v7tar_filename_encoding.c | 67 ++
.../test/test_warn_missing_hardlink_target.c | 2 +-
.../libarchive/libarchive/test/test_write_disk.c | 29 +
.../libarchive/test/test_write_disk_perms.c | 11 +-
.../libarchive/test/test_zip_filename_encoding.c | 40 +
.../la_getline.c => libarchive_fe/lafe_getline.c} | 11 +-
.../la_getline.h => libarchive_fe/lafe_getline.h} | 15 +-
contrib/libarchive/tar/bsdtar.c | 20 +-
contrib/libarchive/tar/read.c | 2 +-
contrib/libarchive/tar/util.c | 8 +-
contrib/libarchive/tar/write.c | 16 +-
contrib/libarchive/test_utils/test_common.h | 4 +
contrib/libarchive/test_utils/test_main.c | 85 +-
contrib/libarchive/unzip/bsdunzip.c | 6 +-
lib/libarchive/tests/Makefile | 13 +
usr.bin/unzip/Makefile | 2 +-
95 files changed, 3019 insertions(+), 372 deletions(-)
diff --cc contrib/libarchive/README.md
index e9691f1b710b,000000000000..3009e1b54d18
mode 100644,000000..100644
--- a/contrib/libarchive/README.md
+++ b/contrib/libarchive/README.md
@@@ -1,247 -1,0 +1,250 @@@
+# 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:
++The following files in the top-level directory are related to the 'configure' script and are only needed by maintainers:
+
- * `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
++* `configure.ac` - used (by autoconf) to build the configure script and related files
++* `Makefile.am` - used (by automake) to generate Makefile.in
++* `aclocal.m4` - auto-generated file (created by aclocal) used to build the configure script
++* `Makefile.in` - auto-generated template (created by automake) used by the configure script to create Makefile
++* `config.h.in` - auto-generated template (created by autoheader) used by the configure script to create config.h
+
+## 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, zstd, 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)
+ * WARC archives
+ * 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)
+ * ZIPX archives (with bzip2, zstd, lzma or xz compressed entries)
+ * GNU and BSD 'ar' archives
+ * 'mtree' format
+ * ISO9660 format
+ * 7-Zip archives (including archives that use zstandard compression)
+ * WARC archives
+ * XAR archives
+
+When creating archives, the result can be filtered with any of the following:
+
+ * uuencode
+ * base64
+ * 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 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_7zip_malformed3.7z.uu
index 000000000000,4e814980a6da..4e814980a6da
mode 000000,100644..100644
--- a/contrib/libarchive/libarchive/test/test_read_format_7zip_malformed3.7z.uu
+++ b/contrib/libarchive/libarchive/test/test_read_format_7zip_malformed3.7z.uu
diff --cc contrib/libarchive/libarchive/test/test_read_format_7zip_sfx_elf64trunc.elf.uu
index 000000000000,512da918218b..512da918218b
mode 000000,100644..100644
--- a/contrib/libarchive/libarchive/test/test_read_format_7zip_sfx_elf64trunc.elf.uu
+++ b/contrib/libarchive/libarchive/test/test_read_format_7zip_sfx_elf64trunc.elf.uu
diff --cc contrib/libarchive/libarchive/test/test_read_format_cab_lzx_oob.c
index 000000000000,a4c15d62f789..a4c15d62f789
mode 000000,100644..100644
--- a/contrib/libarchive/libarchive/test/test_read_format_cab_lzx_oob.c
+++ b/contrib/libarchive/libarchive/test/test_read_format_cab_lzx_oob.c
diff --cc contrib/libarchive/libarchive/test/test_read_format_cab_lzx_oob.cab.uu
index 000000000000,2f453ef27116..2f453ef27116
mode 000000,100644..100644
--- a/contrib/libarchive/libarchive/test/test_read_format_cab_lzx_oob.cab.uu
+++ b/contrib/libarchive/libarchive/test/test_read_format_cab_lzx_oob.cab.uu
diff --cc contrib/libarchive/libarchive/test/test_read_format_cab_skip_malformed.c
index 000000000000,05cc80b79c93..05cc80b79c93
mode 000000,100644..100644
--- a/contrib/libarchive/libarchive/test/test_read_format_cab_skip_malformed.c
+++ b/contrib/libarchive/libarchive/test/test_read_format_cab_skip_malformed.c
diff --cc contrib/libarchive/libarchive/test/test_read_format_cab_skip_malformed.cab.uu
index 000000000000,7ec83433546d..7ec83433546d
mode 000000,100644..100644
--- a/contrib/libarchive/libarchive/test/test_read_format_cab_skip_malformed.cab.uu
+++ b/contrib/libarchive/libarchive/test/test_read_format_cab_skip_malformed.cab.uu
diff --cc contrib/libarchive/libarchive/test/test_read_format_iso_zisofs_overflow.c
index 000000000000,bad52b154acd..bad52b154acd
mode 000000,100644..100644
--- a/contrib/libarchive/libarchive/test/test_read_format_iso_zisofs_overflow.c
+++ b/contrib/libarchive/libarchive/test/test_read_format_iso_zisofs_overflow.c
diff --cc contrib/libarchive/libarchive/test/test_read_format_iso_zisofs_overflow.iso.uu
index 000000000000,5e7dcc3750ac..5e7dcc3750ac
mode 000000,100644..100644
--- a/contrib/libarchive/libarchive/test/test_read_format_iso_zisofs_overflow.iso.uu
+++ b/contrib/libarchive/libarchive/test/test_read_format_iso_zisofs_overflow.iso.uu
diff --cc contrib/libarchive/libarchive/test/test_read_format_lha_oversize_header.c
index 000000000000,fbdbd671df7c..fbdbd671df7c
mode 000000,100644..100644
--- a/contrib/libarchive/libarchive/test/test_read_format_lha_oversize_header.c
+++ b/contrib/libarchive/libarchive/test/test_read_format_lha_oversize_header.c
diff --cc contrib/libarchive/libarchive/test/test_read_format_lha_oversize_header.lzh.uu
index 000000000000,e562e440a777..e562e440a777
mode 000000,100644..100644
--- a/contrib/libarchive/libarchive/test/test_read_format_lha_oversize_header.lzh.uu
+++ b/contrib/libarchive/libarchive/test/test_read_format_lha_oversize_header.lzh.uu
diff --cc contrib/libarchive/libarchive/test/test_read_format_rar5_loop_bug.c
index 000000000000,77dd78cccc48..77dd78cccc48
mode 000000,100644..100644
--- a/contrib/libarchive/libarchive/test/test_read_format_rar5_loop_bug.c
+++ b/contrib/libarchive/libarchive/test/test_read_format_rar5_loop_bug.c
diff --cc contrib/libarchive/libarchive/test/test_read_format_rar5_loop_bug.rar.uu
index 000000000000,3e470043fb70..3e470043fb70
mode 000000,100644..100644
--- a/contrib/libarchive/libarchive/test/test_read_format_rar5_loop_bug.rar.uu
+++ b/contrib/libarchive/libarchive/test/test_read_format_rar5_loop_bug.rar.uu
diff --cc contrib/libarchive/libarchive/test/test_v7tar_filename_encoding.c
index 000000000000,96594b12180e..96594b12180e
mode 000000,100644..100644
--- a/contrib/libarchive/libarchive/test/test_v7tar_filename_encoding.c
+++ b/contrib/libarchive/libarchive/test/test_v7tar_filename_encoding.c
diff --cc lib/libarchive/tests/Makefile
index 880c0d3ce0c6,000000000000..3a03725054f4
mode 100644,000000..100644
--- a/lib/libarchive/tests/Makefile
+++ b/lib/libarchive/tests/Makefile
@@@ -1,751 -1,0 +1,764 @@@
+.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+= -I${SRCTOP}/sys/contrib/zstd/lib
+
+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_7zip_filename_encoding.c \
+ 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_ar_mode.c \
+ test_archive_api_feature.c \
+ test_archive_clear_error.c \
+ test_archive_cmdline.c \
+ test_archive_digest.c \
+ test_archive_match_time.c \
+ test_archive_match_owner.c \
+ test_archive_match_path.c \
+ test_archive_pathmatch.c \
+ test_archive_parse_date.c \
+ test_archive_read.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_gtar_large.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_gzip_recursive.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_issue2765.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_cab_lzx_oob.c \
++ test_read_format_cab_skip_malformed.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_redundant_L.c \
+ test_read_format_gtar_sparse.c \
+ test_read_format_gtar_sparse_length.c \
+ test_read_format_gtar_sparse_skip_entry.c \
+ test_read_format_huge_rpm.c \
+ test_read_format_iso_Z.c \
+ test_read_format_iso_multi_extent.c \
+ test_read_format_iso_xorriso.c \
++ test_read_format_iso_zisofs_overflow.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_lha_oversize_header.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_loop_bug.c \
+ test_read_format_rar5.c \
+ test_read_format_rar_encryption.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_rar_overflow.c \
+ test_read_format_raw.c \
+ test_read_format_tar.c \
+ test_read_format_tar_V_negative_size.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_tar_mac_metadata.c \
+ test_read_format_tar_pax_g_large.c \
+ test_read_format_tar_pax_large_attr.c \
+ test_read_format_tar_pax_negative_time.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_empty_val_no_nl.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_v7tar_filename_encoding.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_secure_noabsolutepaths.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_preset_digests.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_compression_zstd.c \
+ test_write_format_zip_compression_bzip2.c \
+ test_write_format_zip_compression_lzmaxz.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_format_zip_windows_path.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
+
+# 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_lz4_skippable_frames_B4.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_gzip_recursive.gz.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_deflate_powerpc.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_extract_second.7z.uu
+${PACKAGE}FILES+= test_read_format_7zip_issue2765.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_lzma2_powerpc.7z.uu
+${PACKAGE}FILES+= test_read_format_7zip_lzma2_riscv.7z.uu
+${PACKAGE}FILES+= test_read_format_7zip_lzma2_sparc.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_malformed3.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_sfx_elf64trunc.elf.uu
+${PACKAGE}FILES+= test_read_format_7zip_sfx_elf.elf.uu
+${PACKAGE}FILES+= test_read_format_7zip_sfx_modified_pe.exe.uu
+${PACKAGE}FILES+= test_read_format_7zip_sfx_pe.exe.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
*** 284 LINES SKIPPED ***