]> git.ipfire.org Git - thirdparty/libarchive.git/commit
seekable zip backend: Accept files with valid ZIP64 EOCD headers 870/head
authorPhillip Berndt <phillip.berndt@googlemail.com>
Mon, 20 Feb 2017 16:45:56 +0000 (17:45 +0100)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Sat, 25 Feb 2017 10:05:19 +0000 (11:05 +0100)
commite00a4461d7f2cca370e373c37a79451c247501da
tree4e669bf230565616f1fecc9104a5c3c8463c8e78
parent429b71b92af52d1a65542d7683d713f960d29f54
seekable zip backend: Accept files with valid ZIP64 EOCD headers

Previously, a ZIP64 file needed to have a valid classic EOCD header.
This is not the case at least for archives generated by PHPZipStreamer.

This commit allows for a bit more than necessary: While PHPZipStreamer
sets the classic EOCD header to all -1's, the bidding function now
succeeds also if the EOCD header values have arbitrary values, as long
as the ZIP64 EOCD header seems plausible. This simplifies the logic and
should not do any harm in practice.

This fixes #869.
libarchive/archive_read_support_format_zip.c