commit | ae8180c06dee228cd1378c56afa6020ae98d8a24 | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Wed Sep 21 14:58:11 2016 -0700 |
committer | Tianjie Xu <xunchang@google.com> | Thu Sep 22 11:24:42 2016 -0700 |
tree | 14b6ca009c4c18e320c143c3ab634bc252dc2a5b | |
parent | 7c9800dfe6ecfe024b147f3edc83b5e8d3d75632 [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 Change-Id: I1d8092a19b73886a671bc9d291cfc27d65e3d236