platform_system_core/libziparchive
Tianjie d9bc8fd639 Fix the boundary check when parsing sizes in zip64 extended field
We should check if the data to read resides within the boundary of
the extended field. Also check OOB when reading bytes from the
zipfile.

Bug: 153828925
Test: parse the poc with hwasan build
Change-Id: I54b58a287b9ae4ca0e5cc563086c1ed8051fb72a
2020-04-14 11:26:42 -07:00
..
cli-tests cli-test: a tool for testing command-line programs. 2019-12-13 12:23:51 -08:00
include/ziparchive Allow parsing zip entries larger than 4GiB 2020-04-03 12:46:20 -07:00
testdata Support parsing of data descriptor 2020-03-31 12:01:12 -07:00
.clang-format add a performance benchmark for libziparchive 2017-05-30 10:50:14 -07:00
Android.bp Implement the functions to parse zip64 structs 2020-03-24 15:06:57 -07:00
OWNERS Add OWNERS. 2017-12-07 13:30:03 -08:00
entry_name_utils-inl.h Ziparchive: Enable -Wconversion 2019-04-05 13:50:48 -07:00
entry_name_utils_test.cc Ran clang-format on libziparchive sources and headers 2017-07-02 11:46:53 +09:00
libziparchive_fuzzer.cpp libziparchive: add trivial fuzzer. 2019-10-22 11:45:49 -07:00
run-ziptool-tests-on-android.sh cli-test: a tool for testing command-line programs. 2019-12-13 12:23:51 -08:00
test_ziparchive_large.py Allow parsing zip entries larger than 4GiB 2020-04-03 12:46:20 -07:00
zip_archive.cc Fix the boundary check when parsing sizes in zip64 extended field 2020-04-14 11:26:42 -07:00
zip_archive_benchmark.cpp [zip] Stop calculating crc if it's not checked 2020-04-08 13:55:54 -07:00
zip_archive_common.h Support parsing of data descriptor 2020-03-31 12:01:12 -07:00
zip_archive_private.h Allow parsing zip entries larger than 4GiB 2020-04-03 12:46:20 -07:00
zip_archive_stream_entry.cc Ziparchive: Enable -Wconversion 2019-04-05 13:50:48 -07:00
zip_archive_test.cc Allow ExtractToMemory to accept an empty buffer for empty entries 2020-04-07 12:25:16 -07:00
zip_cd_entry_map.cc Move the implementation of cd entry map to a separate file 2020-03-16 17:43:49 -07:00
zip_cd_entry_map.h Move the implementation of cd entry map to a separate file 2020-03-16 17:43:49 -07:00
zip_error.cpp Allow parsing zip entries larger than 4GiB 2020-04-03 12:46:20 -07:00
zip_error.h Allow parsing zip entries larger than 4GiB 2020-04-03 12:46:20 -07:00
zip_writer.cc Support parsing of data descriptor 2020-03-31 12:01:12 -07:00
zip_writer_test.cc Avoid using data descriptors in ZIP files when possible. 2019-07-23 06:58:53 +00:00
ziptool-tests.xml cli-test: a tool for testing command-line programs. 2019-12-13 12:23:51 -08:00
ziptool.cpp Allow parsing zip entries larger than 4GiB 2020-04-03 12:46:20 -07:00