commit | efe5966071c6a4469c98152e0456db87d0960f39 | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Wed Apr 05 14:46:27 2017 -0700 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Wed Aug 23 19:22:46 2017 +0000 |
tree | 70d91470b5bd886b2f3b6d6de4e4cbf6fd900589 | |
parent | 358b97d3e7ea360e47413614349c42f6d1926d85 [diff] |
Fix out of bound read in libziparchive We should check the boundary of central directory before checking its signature. Swap the order of these two checks. Bug: 36392138 Test: libziparchive doesn't read the signature after boundary check fails. Change-Id: Ie89f709bb2d1ccb647116fb7ccb1e23c943e5ab8 (cherry picked from commit 74464a1361562d4042a67c5d66bfcf396ee7e59c) (cherry picked from commit d9fd1863f46d5185eaaebc0803ee9c5da3ef110b)