android_system_core/libziparchive
Tianjie Xu 0fda1cf633 Fix out of bound read in libziparchive
We should check the boundary of central directory before checking its
signature. Swap the order of these two checks.

Bug: 36392138
Test: libziparchive doesn't read the signature after boundary check fails.
Merged-In: Ie89f709bb2d1ccb647116fb7ccb1e23c943e5ab8
Change-Id: Ie89f709bb2d1ccb647116fb7ccb1e23c943e5ab8
(cherry picked from commit 74464a1361)
2017-06-30 17:19:56 +09:00
..
testdata Check filename memory bound when parsing ziparchive 2017-06-30 17:19:28 +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 Fix out of bound read in libziparchive 2017-06-30 17:19:56 +09: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 Check filename memory bound when parsing ziparchive 2017-06-30 17:19:28 +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