summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu2016-09-21 16:58:11 -0500
committerTianjie Xu2016-09-22 13:24:42 -0500
commitae8180c06dee228cd1378c56afa6020ae98d8a24 (patch)
tree14b6ca009c4c18e320c143c3ab634bc252dc2a5b /libziparchive/testdata
parent7c9800dfe6ecfe024b147f3edc83b5e8d3d75632 (diff)
downloadplatform-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.apkbin0 -> 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