commit | 3e15f2d936999216dacc6bf8ef7cbe988ec0adc4 | [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 | 9bfa81c74c5993d42c390f6c8730dc9828ffe87d | |
parent | 87316cf4f6dc810d0c2f409d0fb134587a296b88 [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)