commit | 1c72f019699fbbb46ed82f249fb9a110a11f6f13 | [log] [tgz] |
---|---|---|
author | Adam Lesinski <adamlesinski@google.com> | Wed Mar 29 16:10:11 2017 -0700 |
committer | Adam Lesinski <adamlesinski@google.com> | Thu Apr 06 17:03:32 2017 -0700 |
tree | 6ff0407b9ef12c67958e576f004642377c1ab39c | |
parent | ba5a2bed898fd5bfc6b1c81a577ecdb999b77f77 [diff] |
ZipWriter: Do not write DataDescriptor for STORED files Older implementations of ZIP (Java's ZipInputStream) don't like a Data Descriptor trailing after an uncompressed entry. If the FILE is seekable, and the entry is uncompressed, seek back to the header and write out the crc and sizes. (cherry-pick of commit 639814d946867c20537820cd0c08a6202a251583) Bug: 36686974 Test: make ziparchive_tests Change-Id: I61664515e5afa3e2ba814874eeac847a2aaac319