android_system_core/libziparchive
Tianjie Xu fba1a36fd9 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 ae8180c06d)
2017-06-30 17:18:31 +09:00
..
testdata Fix out of bound access in libziparchive 2017-06-30 17:18:31 +09:00
.clang-format add a performance benchmark for libziparchive 2017-05-30 10:50:14 -07:00
Android.bp Add libziparchive-based unzip. 2017-06-04 11:53:48 -07:00
entry_name_utils-inl.h Reject zip archives whose entry names are not valid UTF-8. 2014-12-08 12:25:05 +00:00
entry_name_utils_test.cc Reject zip archives whose entry names are not valid UTF-8. 2014-12-08 12:25:05 +00:00
unzip.cpp Add libziparchive-based unzip. 2017-06-04 11:53:48 -07:00
zip_archive.cc Merge "zip_archive_test: compare error codes directly." 2017-06-20 10:50:27 +00:00
zip_archive_benchmark.cpp add a performance benchmark for libziparchive 2017-05-30 10:50:14 -07:00
zip_archive_common.h Add libziparchive-based unzip. 2017-06-04 11:53:48 -07:00
zip_archive_private.h zip_archive_test: compare error codes directly. 2017-06-19 13:03:41 +01:00
zip_archive_stream_entry.cc liblog: use log/log.h when utilizing ALOG macros 2017-01-11 09:31:15 -08:00
zip_archive_test.cc Fix out of bound access in libziparchive 2017-06-30 17:18:31 +09:00
zip_writer.cc ZipWriter: Keep LFH and CFH in sync 2017-04-11 01:45:25 +00:00
zip_writer_test.cc Add libziparchive-based unzip. 2017-06-04 11:53:48 -07:00