commit | 052ab2385026e9c4ebe6081f3e82cccd5dc160ca | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Mon Oct 30 11:17:28 2017 +0000 |
committer | Narayan Kamath <narayan@google.com> | Mon Oct 30 18:18:08 2017 +0000 |
tree | fa09d3ac37d78f2618cf93da79fbd69929553897 | |
parent | 3e00fd49ea6efe6e038bbbc9870486828e7d53ad [diff] |
zip_archive: Allow crc_out to be nullptr in Inflate. Only compute the crc32 if required. In addition : - Add unit tests for Inflate that cover this addition. - Fix an inconsistency in return codes that was revealed by this new test. Bug: 35246701 Test: zip_archive_tests Test: make; zipalign. (cherry picked from commit d9e85b14afd5a2ee14bb4df46cf576c5f9c25f24) Change-Id: I31d7554378f94fc8995f707471d57cb98311e2c2