commit | e2fa70bcb048566eff4d0e271288f24f0bdbc0a8 | [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 | 0e19795a621ddb9912edc58b832f078405e485fd [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