# zip_open: various inconsistent files program tryopen file incons-archive-comment-longer.zzip incons-archive-comment-longer.zip file incons-archive-comment-shorter.zzip incons-archive-comment-shorter.zip file incons-cdoffset.zzip incons-cdoffset.zip file incons-cdsize-large.zzip incons-cdsize-large.zip file incons-cdsize-small.zzip incons-cdsize-large.zip file incons-central-compression-method.zzip incons-central-compression-method.zip file incons-central-compsize-larger.zzip incons-central-compsize-larger.zip file incons-central-compsize-larger-toolarge.zzip incons-central-compsize-larger-toolarge.zip file incons-central-compsize-smaller.zzip incons-central-compsize-smaller.zip file incons-central-crc.zzip incons-central-crc.zip file incons-central-date.zzip incons-central-date.zip file incons-central-file-comment-longer.zzip incons-central-file-comment-longer.zip file incons-central-file-comment-shorter.zzip incons-central-file-comment-shorter.zip file incons-central-file-comment-utf8-ascii.zzip incons-central-file-comment-utf8-ascii.zip file incons-central-magic-bad.zzip incons-central-magic-bad.zip file incons-central-magic-bad2.zzip incons-central-magic-bad2.zip file incons-central-size-larger.zzip incons-central-size-larger.zip file incons-data.zzip incons-data.zip file incons-ef-central-size-wrong.zzip incons-ef-central-size-wrong.zip file incons-ef-local-dupe-utf8comment.zzip incons-ef-local-dupe-utf8comment.zip file incons-ef-local-dupe-utf8name.zzip incons-ef-local-dupe-utf8name.zip file incons-ef-local-dupe-zip64-v1.zzip incons-ef-local-dupe-zip64-v1.zip file incons-ef-local-dupe-zip64-v2.zzip incons-ef-local-dupe-zip64-v2.zip file incons-ef-local-id-size.zzip incons-ef-local-id-size.zip file incons-ef-local-id.zzip incons-ef-local-id.zip file incons-ef-local-size.zzip incons-ef-local-size.zip file incons-ef-local-utf8name-ascii.zzip incons-ef-local-utf8name-ascii.zip file incons-eocd64.zzip incons-eocd64.zip 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-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 file incons-local-crc.zzip incons-local-crc.zip file incons-local-filename-long.zzip incons-local-filename-long.zip file incons-local-filename-missing.zzip incons-local-filename-missing.zip file incons-local-filename-nil-byte.zzip incons-local-filename-nil-byte.zip 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 file incons-stored-size.zzip incons-stored-size.zip file incons-streamed.zzip incons-streamed.zip file incons-streamed-2.zzip incons-streamed-2.zip arguments -s -c incons-archive-comment-longer.zzip incons-archive-comment-shorter.zzip incons-cdoffset.zzip incons-cdsize-large.zzip incons-cdsize-small.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-file-comment-utf8-ascii.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-dupe-utf8comment.zzip incons-ef-local-dupe-utf8name.zzip incons-ef-local-dupe-zip64-v1.zzip incons-ef-local-dupe-zip64-v2.zzip incons-ef-local-id-size.zzip incons-ef-local-id.zzip incons-ef-local-size.zzip incons-ef-local-utf8name-ascii.zzip incons-eocd64.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-nil-byte.zzip incons-local-filename-short.zzip incons-local-filename.zzip incons-local-magic-bad.zzip incons-local-size-larger.zzip incons-stored-size.zzip incons-streamed.zzip incons-streamed-2.zzip return 1 # tryopen does not test checksums, so this is fine. # different extra fields local vs. central is fine stdout opening 'incons-archive-comment-longer.zzip' returned error Zip archive inconsistent: archive comment length incorrect opening 'incons-archive-comment-shorter.zzip' returned error Zip archive inconsistent: archive comment length incorrect opening 'incons-cdoffset.zzip' returned error Possibly truncated or corrupted zip archive opening 'incons-cdsize-large.zzip' returned error Zip archive inconsistent: central directory overlaps EOCD, or there is space between them opening 'incons-cdsize-small.zzip' returned error Zip archive inconsistent: central directory overlaps EOCD, or there is space between them opening 'incons-central-compression-method.zzip' returned error Zip archive inconsistent: entry 0: local and central headers do not match opening 'incons-central-compsize-larger-toolarge.zzip' returned error Possibly truncated or corrupted zip archive opening 'incons-central-compsize-larger.zzip' returned error Zip archive inconsistent: entry 0: local and central headers do not match opening 'incons-central-compsize-smaller.zzip' returned error Zip archive inconsistent: entry 0: local and central headers do not match opening 'incons-central-crc.zzip' returned error Zip archive inconsistent: entry 0: local and central headers do not match opening 'incons-central-date.zzip' returned error Zip archive inconsistent: entry 0: local and central headers do not match opening 'incons-central-file-comment-longer.zzip' returned error Zip archive inconsistent: entry 0: variable size fields overflow header opening 'incons-central-file-comment-shorter.zzip' returned error Zip archive inconsistent: entry 1: central header invalid opening 'incons-central-file-comment-utf8-ascii.zzip' succeeded, 1 entries opening 'incons-central-magic-bad.zzip' returned error Possibly truncated or corrupted zip archive opening 'incons-central-magic-bad2.zzip' returned error Possibly truncated or corrupted zip archive opening 'incons-central-size-larger.zzip' returned error Zip archive inconsistent: entry 0: local and central headers do not match opening 'incons-data.zzip' succeeded, 1 entries opening 'incons-ef-central-size-wrong.zzip' returned error Zip archive inconsistent: entry 0: extra field length is invalid opening 'incons-ef-local-dupe-utf8comment.zzip' succeeded, 1 entries opening 'incons-ef-local-dupe-utf8name.zzip' returned error Zip archive inconsistent: entry 0: local and central headers do not match opening 'incons-ef-local-dupe-zip64-v1.zzip' returned error Zip archive inconsistent: entry 0: local and central headers do not match opening 'incons-ef-local-dupe-zip64-v2.zzip' succeeded, 1 entries opening 'incons-ef-local-id-size.zzip' returned error Zip archive inconsistent: entry 0: extra field length is invalid opening 'incons-ef-local-id.zzip' succeeded, 1 entries opening 'incons-ef-local-size.zzip' returned error Zip archive inconsistent: entry 0: extra field length is invalid opening 'incons-ef-local-utf8name-ascii.zzip' returned error Zip archive inconsistent: entry 0: UTF-8 filename is ASCII and doesn't match filename opening 'incons-eocd64.zzip' returned error Zip archive inconsistent: EOCD64 and EOCD do not match opening 'incons-eocd-magic-bad.zzip' returned error Possibly truncated or corrupted zip archive opening 'incons-file-count-high.zzip' returned error Zip archive inconsistent: central directory count of entries is incorrect opening 'incons-file-count-low.zzip' returned error Zip archive inconsistent: central directory count of entries is incorrect opening 'incons-file-count-overflow.zzip' returned error Zip archive inconsistent: invalid value in central directory 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 Zip archive inconsistent: entry 0: local and central headers do not match opening 'incons-local-compsize-larger.zzip' returned error Zip archive inconsistent: entry 0: local and central headers do not match opening 'incons-local-compsize-smaller.zzip' returned error Zip archive inconsistent: entry 0: local and central headers do not match opening 'incons-local-crc.zzip' returned error Zip archive inconsistent: entry 0: local and central headers do not match opening 'incons-local-filename-long.zzip' returned error Premature end of file opening 'incons-local-filename-missing.zzip' returned error Zip archive inconsistent: entry 0: local and central headers do not match opening 'incons-local-filename-nil-byte.zzip' succeeded, 1 entries opening 'incons-local-filename-short.zzip' returned error Zip archive inconsistent: entry 0: extra field length is invalid opening 'incons-local-filename.zzip' returned error Zip archive inconsistent: entry 0: local and central headers do not match opening 'incons-local-magic-bad.zzip' returned error Not a zip archive opening 'incons-local-size-larger.zzip' returned error Zip archive inconsistent: entry 0: local and central headers do not match opening 'incons-stored-size.zzip' returned error Zip archive inconsistent: entry 0: compressed and uncompressed sizes don't match for stored file opening 'incons-streamed.zzip' returned error Zip archive inconsistent: entry 0: local and central headers do not match opening 'incons-streamed-2.zzip' returned error Zip archive inconsistent: entry 0: local header and data descriptor do not match end-of-inline-data stderr 40 errors end-of-inline-data