From 41eda5d2d5dd83fc2f0482bb776f4d6042a59957 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Sat, 27 Jul 2024 20:28:09 +0200 Subject: [PATCH] add test file for gap before local header Currently accepted by both libzip and InfoZIP --- regress/incons-gap-before-local.zip | Bin 0 -> 202 bytes regress/open_incons.test | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 regress/incons-gap-before-local.zip diff --git a/regress/incons-gap-before-local.zip b/regress/incons-gap-before-local.zip new file mode 100644 index 0000000000000000000000000000000000000000..23036f3c2c5238e0f79f9c02a985e6e6627ebbdc GIT binary patch literal 202 zcmWIWW@Zs#00GCvzaxGvv#(_avO$;?h)Yt7OALWTL;#91p1S%QEI?@xhAA@wsSWUE xWU^<*Z5~iP7;I|2wV;~~(ZIm4tx+AS#VEj=l?^1!1cYfo+7HBG000mrBlrLS literal 0 HcmV?d00001 diff --git a/regress/open_incons.test b/regress/open_incons.test index 812fa55de..810d69809 100644 --- a/regress/open_incons.test +++ b/regress/open_incons.test @@ -25,6 +25,7 @@ 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-cd.zzip incons-gap-before-cd.zip file incons-gap-before-eocd.zzip incons-gap-before-eocd.zip +file incons-gap-before-local.zzip incons-gap-before-local.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 @@ -35,7 +36,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-gap-before-cd.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 +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-cd.zzip incons-gap-before-eocd.zzip incons-gap-before-local.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 @@ -65,6 +66,7 @@ opening 'incons-file-count-low.zzip' returned error 21/5 opening 'incons-file-count-overflow.zzip' returned error 21/11 opening 'incons-gap-before-cd.zzip' succeeded, 1 entries opening 'incons-gap-before-eocd.zzip' succeeded, 1 entries +opening 'incons-gap-before-local.zzip' succeeded, 2 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