commit | 1fabc1fa9d91c9bfc7e707f6d489252fcbb38753 | [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 | ca427a05eaf5a0c8c0e96c1d47c28e820cb5f86d [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