commit | d987c9dd9eff02ce2a49ee413f08218e9090ad4a | [log] [tgz] |
---|---|---|
author | Adam Lesinski <adamlesinski@google.com> | Thu Apr 06 18:55:47 2017 -0700 |
committer | Adam Lesinski <adamlesinski@google.com> | Tue Apr 11 01:45:25 2017 +0000 |
tree | 8752c44d1c901aabb8538983f53678ee1880ac69 | |
parent | 625a0985735bfac841d84c8477fa754f4437870b [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. (cherry-pick of commit e0eca55fe6e36a8ae975be6cbb5a7932b30ba0c1) Test: make ziparchive-tests Bug: 36686974 Change-Id: Ied167570abcf6426b1c678cd40123e5ad65909db