commit | 50d79d01391417e16b274e7cebecd1eb66ac794a | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Wed Sep 21 14:58:11 2016 -0700 |
committer | Jiyong Park <jiyong@google.com> | Fri Jun 30 17:18:31 2017 +0900 |
tree | e9fa009e369796202bb1097ce054358d611eede3 | |
parent | 1601f41060e61ddf8affc8bd3358c2b493a0c484 [diff] |
Fix out of bound access in libziparchive 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 Merged-In: I1d8092a19b73886a671bc9d291cfc27d65e3d236 Change-Id: I1d8092a19b73886a671bc9d291cfc27d65e3d236 (cherry picked from commit ae8180c06dee228cd1378c56afa6020ae98d8a24)