commit | fe5e5f34256348451988edaea42eb5260ccd6be9 | [log] [tgz] |
---|---|---|
author | Adam Lesinski <adamlesinski@google.com> | Thu Apr 06 18:55:47 2017 -0700 |
committer | Adam Lesinski <adamlesinski@google.com> | Mon Apr 10 12:05:43 2017 -0700 |
tree | d03df34dc67d4deb867990b74047bd894b9b43f4 | |
parent | a0ef6dbb62dbea30572eceb10ef84bf9c5b32f23 [diff] |
ZipWriter: Keep LFH and CFH in sync We change the GPB in the LocalFileHeader if the entry can not have a trailing DataDescriptor. Make sure to patch the CentralFileHeader to have the same bits set. Modify ZipArchive to check that the data descriptor bit is consistent between Central and Local file headers. Test: make ziparchive-tests Bug: 36686974 Change-Id: Ied167570abcf6426b1c678cd40123e5ad65909db