From a03ee7a12a2d502f8cdfd2c6ec1fe7e2aeff4599 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Sat, 27 Jul 2024 20:00:39 +0200 Subject: [PATCH] add new test archive: extra byte before EOCD Currently not recognized as problem (in contrast to InfoZIP). --- regress/incons-gap-before-eocd.zip | Bin 0 -> 111 bytes regress/open_incons.test | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 regress/incons-gap-before-eocd.zip diff --git a/regress/incons-gap-before-eocd.zip b/regress/incons-gap-before-eocd.zip new file mode 100644 index 0000000000000000000000000000000000000000..53d5524cfb9b6fe885bc0071d678b14c2d44e605 GIT binary patch literal 111 zcmWIWW@Zs#00F)Ezax0+>Tj?B*)Uv^T3iCc0p5&E_RP4|feio>+ZsVEkdBA|Z&o%C OhY<*kfV3Kj!vFw(juDgq literal 0 HcmV?d00001 diff --git a/regress/open_incons.test b/regress/open_incons.test index 73e99c618..f82e16fb8 100644 --- a/regress/open_incons.test +++ b/regress/open_incons.test @@ -23,6 +23,7 @@ file incons-eocd-magic-bad.zzip incons-eocd-magic-bad.zip file incons-file-count-high.zzip incons-file-count-high.zip file incons-file-count-low.zzip incons-file-count-low.zip file incons-file-count-overflow.zzip incons-file-count-overflow.zip +file incons-gap-before-eocd.zzip incons-gap-before-eocd.zip file incons-local-compression-method.zzip incons-local-compression-method.zip file incons-local-compsize-larger.zzip incons-local-compsize-larger.zip file incons-local-compsize-smaller.zzip incons-local-compsize-smaller.zip @@ -33,7 +34,7 @@ file incons-local-filename-short.zzip incons-local-filename-short.zip file incons-local-filename.zzip incons-local-filename.zip file incons-local-magic-bad.zzip incons-local-magic-bad.zip file incons-local-size-larger.zzip incons-local-size-larger.zip -arguments -c incons-archive-comment-longer.zzip incons-archive-comment-shorter.zzip incons-cdoffset.zzip incons-central-compression-method.zzip incons-central-compsize-larger-toolarge.zzip incons-central-compsize-larger.zzip incons-central-compsize-smaller.zzip incons-central-crc.zzip incons-central-date.zzip incons-central-file-comment-longer.zzip incons-central-file-comment-shorter.zzip incons-central-magic-bad.zzip incons-central-magic-bad2.zzip incons-central-size-larger.zzip incons-data.zzip incons-ef-central-size-wrong.zzip incons-ef-local-id-size.zzip incons-ef-local-id.zzip incons-ef-local-size.zzip incons-eocd-magic-bad.zzip incons-file-count-high.zzip incons-file-count-low.zzip incons-file-count-overflow.zzip incons-local-compression-method.zzip incons-local-compsize-larger.zzip incons-local-compsize-smaller.zzip incons-local-crc.zzip incons-local-filename-long.zzip incons-local-filename-missing.zzip incons-local-filename-short.zzip incons-local-filename.zzip incons-local-magic-bad.zzip incons-local-size-larger.zzip +arguments -c incons-archive-comment-longer.zzip incons-archive-comment-shorter.zzip incons-cdoffset.zzip incons-central-compression-method.zzip incons-central-compsize-larger-toolarge.zzip incons-central-compsize-larger.zzip incons-central-compsize-smaller.zzip incons-central-crc.zzip incons-central-date.zzip incons-central-file-comment-longer.zzip incons-central-file-comment-shorter.zzip incons-central-magic-bad.zzip incons-central-magic-bad2.zzip incons-central-size-larger.zzip incons-data.zzip incons-ef-central-size-wrong.zzip incons-ef-local-id-size.zzip incons-ef-local-id.zzip incons-ef-local-size.zzip incons-eocd-magic-bad.zzip incons-file-count-high.zzip incons-file-count-low.zzip incons-file-count-overflow.zzip incons-gap-before-eocd.zzip incons-local-compression-method.zzip incons-local-compsize-larger.zzip incons-local-compsize-smaller.zzip incons-local-crc.zzip incons-local-filename-long.zzip incons-local-filename-missing.zzip incons-local-filename-short.zzip incons-local-filename.zzip incons-local-magic-bad.zzip incons-local-size-larger.zzip return 1 # tryopen does not test checksums, so this is fine. # different extra fields local vs. central is fine @@ -61,6 +62,7 @@ opening 'incons-eocd-magic-bad.zzip' returned error 35 opening 'incons-file-count-high.zzip' returned error 21/5 opening 'incons-file-count-low.zzip' returned error 21/5 opening 'incons-file-count-overflow.zzip' returned error 21/11 +opening 'incons-gap-before-eocd.zzip' succeeded, 1 entries opening 'incons-local-compression-method.zzip' returned error 21/6 opening 'incons-local-compsize-larger.zzip' returned error 21/6 opening 'incons-local-compsize-smaller.zzip' returned error 21/6