From: Martin Matuska Date: Sat, 21 Dec 2019 22:10:37 +0000 (+0100) Subject: Add test for reading 7z archives with Digests in PackInfo X-Git-Tag: v3.4.1~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=333d2223141a7bdfa31e0ff79c5af55c6a7b646b;p=thirdparty%2Flibarchive.git Add test for reading 7z archives with Digests in PackInfo Fixes #1295 --- diff --git a/Makefile.am b/Makefile.am index 188c9fc7d..781bbf726 100644 --- a/Makefile.am +++ b/Makefile.am @@ -449,6 +449,7 @@ libarchive_test_SOURCES= \ libarchive/test/test_read_format_7zip_encryption_partially.c \ libarchive/test/test_read_format_7zip_encryption_header.c \ libarchive/test/test_read_format_7zip_malformed.c \ + libarchive/test/test_read_format_7zip_packinfo_digests.c \ libarchive/test/test_read_format_ar.c \ libarchive/test/test_read_format_cab.c \ libarchive/test/test_read_format_cab_filename.c \ @@ -762,6 +763,7 @@ libarchive_test_EXTRA_DIST=\ libarchive/test/test_read_format_7zip_lzma2.7z.uu \ libarchive/test/test_read_format_7zip_malformed.7z.uu \ libarchive/test/test_read_format_7zip_malformed2.7z.uu \ + libarchive/test/test_read_format_7zip_packinfo_digests.7z.uu \ libarchive/test/test_read_format_7zip_ppmd.7z.uu \ libarchive/test/test_read_format_7zip_symbolic_name.7z.uu \ libarchive/test/test_read_format_ar.ar.uu \ diff --git a/libarchive/test/CMakeLists.txt b/libarchive/test/CMakeLists.txt index 0822e591d..df34d3e32 100644 --- a/libarchive/test/CMakeLists.txt +++ b/libarchive/test/CMakeLists.txt @@ -102,6 +102,7 @@ IF(ENABLE_TEST) 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 diff --git a/libarchive/test/test_read_format_7zip_packinfo_digests.7z.uu b/libarchive/test/test_read_format_7zip_packinfo_digests.7z.uu new file mode 100644 index 000000000..4c216170a --- /dev/null +++ b/libarchive/test/test_read_format_7zip_packinfo_digests.7z.uu @@ -0,0 +1,7 @@ +begin 644 test_read_format_7zip_packinfo_digests.7z +M-WJ\KR<<``*^Y_3?$`````````!E`````````&/C(9T!``-A86$*``$``V)B +M8@H``00&``()"`@*`5\J+KLX07WL``<+`@`!(2$!%@$A(0$6#`0$"@&57?AW +MX1\F3``(```%`A$9`&$`+@!T`'@`=````&(`+@!T`'@`=````!02`0"`FYCT +.W+;5`8";F/3