]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Merge pull request #1514 from pimaster/fixDiskAccessForPrePaddedZips
authorTim Kientzle <kientzle@acm.org>
Sat, 27 Mar 2021 04:50:41 +0000 (21:50 -0700)
committerGitHub <noreply@github.com>
Sat, 27 Mar 2021 04:50:41 +0000 (21:50 -0700)
commitce2aebd2e0640f0b29a730d8fe70cf65ed2f7c28
tree24ea305ae27754e2b29f4a012da28174d5d4a3c8
parentd59a76537e2ade4cba21eded1210247a090bf17a
parentda863ef8b9720b317ae12a5aad4859bf60ed146d
Merge pull request #1514 from pimaster/fixDiskAccessForPrePaddedZips

Rather than using the central directory offset as the file position directly, instead use the known location of the end-of-central-directory record and the size of the central directory to compute an offset.  This allows us to efficiently handle Zip archives that have other data prepended to the file.