diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2015-11-04 10:33:09 +0100 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2015-11-05 16:00:58 +0000 |
commit | 912c03445349330f3b82b9f6c66f4c8dc5783bdc (patch) | |
tree | 7cf9890a0e625ff14a945d8fb5bcd0dce086ef8e /dbaccess | |
parent | 87e0c9f6d7d753fbe4ade55d7c15ee07b1118c56 (diff) |
Don't check version field from local ZIP header
Our current Maven based Java toolchain produces JARs, which
have a different "version needed to extract" in the ZIP local
and central directory header.
I had a look at 7zip and unzip and they already ignore the version
but compare other data LO already ignores - sig. The "standard"
document from PKWARE doesn't help.
So just compare the file path and calculate the data offset and
otherwise ignore all (duplicated) information from the local index
and rely on a correct central directory entry. Various programs
produce(d) "broken" ZIP files; even LO at some point (see git log).
Change-Id: I8d63abb0d49a1087c7654f401b62355c147c3118
Reviewed-on: https://gerrit.libreoffice.org/19779
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'dbaccess')
0 files changed, 0 insertions, 0 deletions