Lines Matching +full:bzip2 +full:. +full:zipx

4  * All rights reserved.
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
13 * documentation and/or other materials provided with the distribution.
17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 #include "test.h"
27 __FBSDID("$FreeBSD: stable/11/contrib/libarchive/libarchive/test/test_read_format_zip.c 370535 2021-09-10 08:34:36Z git2svn $");
30 #include <archive_crc32.h>
80 * to properly decode test file. */
170 /* Verify the number of files read. */
182 const char *refname = "test_read_format_zip.zip";
189 /* Verify with seeking reader. */
196 /* Verify with streaming reader. */
207 * Read Info-ZIP New Unix Extra Field 0x7875 "ux".
208 * Currently stores Unix UID/GID up to 32 bits.
239 /* Verify the number of files read. */
252 const char *refname = "test_read_format_zip_ux.zip";
259 /* Verify with seeking reader. */
266 /* Verify with streaming reader. */
278 * Zip entries that use length-at-end.
289 assertEqualString("hello.txt", archive_entry_pathname(ae));
301 assertFileContents("hello\x0A", 6, "hello.txt");
316 const char *refname = "test_read_format_zip_length_at_end.zip";
323 /* Verify extraction with seeking reader. */
330 /* Verify extraction with streaming reader. */
343 const char *refname = "test_read_format_zip_symlink.zip";
352 /* Symlinks can only be extracted with the seeking reader. */
388 const char *refname = "test_read_format_zip_ppmd8.zipx";
408 const char *refname = "test_read_format_zip_ppmd8.zipx";
428 const char *refname = "test_read_format_zip_ppmd8_multi.zipx";
440 assertEqualString("smartd.conf", archive_entry_pathname(ae));
445 assertEqualString("ts.conf", archive_entry_pathname(ae));
460 const char *refname = "test_read_format_zip_ppmd8_multi.zipx";
472 assertEqualString("smartd.conf", archive_entry_pathname(ae));
477 assertEqualString("ts.conf", archive_entry_pathname(ae));
492 const char *refname = "test_read_format_zip_lzma.zipx";
517 const char *refname = "test_read_format_zip_lzma.zipx";
542 const char *refname = "test_read_format_zip_lzma_multi.zipx";
559 assertEqualString("smartd.conf", archive_entry_pathname(ae));
564 assertEqualString("ts.conf", archive_entry_pathname(ae));
579 const char *refname = "test_read_format_zip_lzma_multi.zipx";
596 assertEqualString("smartd.conf", archive_entry_pathname(ae));
601 assertEqualString("ts.conf", archive_entry_pathname(ae));
617 const char *refname = "test_read_format_zip_bzip2.zipx";
623 skipping("bzip2 is not fully supported on this platform");
642 const char *refname = "test_read_format_zip_bzip2.zipx";
648 skipping("bzip2 is not fully supported on this platform");
667 const char *refname = "test_read_format_zip_bzip2_multi.zipx";
673 skipping("bzip2 is not fully supported on this platform");
684 assertEqualString("smartd.conf", archive_entry_pathname(ae));
689 assertEqualString("ts.conf", archive_entry_pathname(ae));
704 const char *refname = "test_read_format_zip_bzip2_multi.zipx";
710 skipping("bzip2 is not fully supported on this platform");
721 assertEqualString("smartd.conf", archive_entry_pathname(ae));
726 assertEqualString("ts.conf", archive_entry_pathname(ae));
741 const char *refname = "test_read_format_zip_xz_multi.zipx";
758 assertEqualString("bash.bashrc", archive_entry_pathname(ae));
763 assertEqualString("pacman.conf", archive_entry_pathname(ae));
778 const char *refname = "test_read_format_zip_xz_multi.zipx";
795 assertEqualString("bash.bashrc", archive_entry_pathname(ae));
800 assertEqualString("pacman.conf", archive_entry_pathname(ae));
815 const char *refname = "test_read_format_zip_ppmd8_crash_2.zipx";
827 /* This file shouldn't be properly decompressed, because it's invalid.
828 * However, unpacker should return an error during unpacking. Without the
829 * proper fix, the unpacker was entering an unlimited loop. */
837 const char *refname = "test_read_format_zip_bz2_hang.zip";
844 skipping("bzip2 is not fully supported on this platform");
854 /* The file `refname` is invalid in this case, so this call should fail.
855 * But it shouldn't crash. */
863 const char *refname = "test_read_format_zip_ppmd8_crash_2.zipx";
875 /* The file `refname` is invalid in this case, so this call should fail.
876 * But it shouldn't crash. */
884 const char *refname = "test_read_format_zip_lzma_alone_leak.zipx";
889 /* OSSFuzz #14470 sample file. */
903 /* Extraction of this file should fail, because the sample file is invalid.
904 * But it shouldn't crash. */
908 /* Extraction of this file should fail, because the sample file is invalid.
909 * But it shouldn't crash. */
915 /* This testcase shouldn't produce any memory leaks. When running test
917 * exit code 0 in case if a memory leak. */
922 const char *refname = "test_read_format_zip_lzma_stream_end.zipx";
947 const char *refname = "test_read_format_zip_lzma_stream_end.zipx";
972 const char *refname = "test_read_format_zip_7z_lzma.zip";
995 assertEqualString("../samples/abc_measurement_analysis_sample"
996 "/src/abc_measurement_analysis_sample.py",
1004 const char *refname = "test_read_format_zip_7z_deflate.zip";
1018 assertEqualString("libxkbcommon-x11.so.0.0.0",
1023 assertEqualString("libxkbcommon-x11.so.0.0.0",