summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* resolve merge conflicts of 34486c5 to masterTianjie Xu2016-10-181-0/+0
|\ | | | | | | Change-Id: I12fc8eb4760bd6c4ae5c97583eb6c659122c9fa9
| * Add functions in recovery/minzip to libziparchiveTianjie Xu2016-10-161-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | Add two functions libziparchive that libminzip has. And create corresponding unit tests. 1. Open a zip archive from a memory mapped region. 2. A new writer that takes a call back function pointer. (Used by the OTA updater to stream the data.) Test: Unit tests passed Bug: 19472796 Change-Id: I2b2daec71174afe221030357e39bff5faea51e72
* | Check filename memory bound when parsing ziparchiveTianjie Xu2016-10-101-0/+0
| | | | | | | | | | | | | | | | | | Add a check to ensure the filename boundary doesn't exceed the mapped memory region. Also add the corresponding unit test. Bug: 28802225 Test: New unit test passes. Change-Id: Ibf543a7da3d7898952e9eb332c84cdfc67cf5aa4
* | Fix out of bound access in libziparchiveTianjie Xu2016-09-221-0/+0
|/ | | | | | | | | | The boundary check of an invalid EOCD record may succeed due to the overflow of uint32_t. Fix the check and add a unit test. Test: Open the crash.apk and libziparchive reports the offset error as expected. Bug: 31251826 Change-Id: I1d8092a19b73886a671bc9d291cfc27d65e3d236
* Add a ZipArchiveStreamEntry class.Christopher Ferris2016-01-142-0/+0
| | | | | | | | | This allows someone to stream the data out of a zip archive instead of extracting to a file or to memory. Included in this change is a small cleanup of the makefile. Change-Id: I8b679a679c3502ff4ea0bc4f9e918303657fa424
* libziparchive: fix issue with a directory with one fileMykola Kondratenko2015-03-191-0/+0
| | | | | | | | | libziparchive fails to iterate some bootanimation archives reporting invalid offset error. This is caused by failure to process a directory with one file (when name_offset + file_name_length == cd_offset). Change-Id: I2733e7f782c14a6fadd5491bb94318ac968df206
* Add unit tests for libziparchive.Narayan Kamath2013-12-101-0/+0
- Add a build rule for host tests - Add basic tests for Find / Iterate and Extract for both deflated & stored entries. - Fix an off by one error that the test uncovered. Change-Id: If72009b1ea9791d5a265829f05c32ffe1c2752c4