diff options
author | Tianjie Xu | 2016-09-21 16:58:11 -0500 |
---|---|---|
committer | Tianjie Xu | 2016-09-22 13:24:42 -0500 |
commit | ae8180c06dee228cd1378c56afa6020ae98d8a24 (patch) | |
tree | 14b6ca009c4c18e320c143c3ab634bc252dc2a5b /libziparchive/testdata | |
parent | 7c9800dfe6ecfe024b147f3edc83b5e8d3d75632 (diff) | |
download | platform-system-core-ae8180c06dee228cd1378c56afa6020ae98d8a24.tar.gz platform-system-core-ae8180c06dee228cd1378c56afa6020ae98d8a24.tar.xz platform-system-core-ae8180c06dee228cd1378c56afa6020ae98d8a24.zip |
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
Diffstat (limited to 'libziparchive/testdata')
-rw-r--r-- | libziparchive/testdata/crash.apk | bin | 0 -> 154 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/libziparchive/testdata/crash.apk b/libziparchive/testdata/crash.apk new file mode 100644 index 000000000..d6dd52dd7 --- /dev/null +++ b/libziparchive/testdata/crash.apk | |||
Binary files differ | |||