android_system_core/libziparchive
Tianjie 0ec0eaa214 Support parsing of data descriptor
The size fields in the data descriptor can be either 4 bytes or 8 bytes.
This depends on if the size are read from the zip64 extended field in
the local file header. This cl adds support to parse these cases.

Also fix a misconception in that the uncompressed and compressed size
doesn't need to exist together in the zip64 fields of the central
directory. But they still need to co-exist in the fields of the local
file header.

Bug: 150900468
Test: unit tests pass, python tests pass
Change-Id: Ia54f9bf56c85ff456ead90a136f7fddc5be5220c
2020-03-31 12:01:12 -07:00
..
cli-tests cli-test: a tool for testing command-line programs. 2019-12-13 12:23:51 -08:00
include/ziparchive Support parsing of data descriptor 2020-03-31 12:01:12 -07:00
testdata Support parsing of data descriptor 2020-03-31 12:01:12 -07:00
.clang-format
Android.bp Implement the functions to parse zip64 structs 2020-03-24 15:06:57 -07:00
OWNERS
entry_name_utils-inl.h
entry_name_utils_test.cc
libziparchive_fuzzer.cpp
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 Support parsing of data descriptor 2020-03-31 12:01:12 -07:00
zip_archive.cc Support parsing of data descriptor 2020-03-31 12:01:12 -07:00
zip_archive_benchmark.cpp
zip_archive_common.h Support parsing of data descriptor 2020-03-31 12:01:12 -07:00
zip_archive_private.h Support parsing of data descriptor 2020-03-31 12:01:12 -07:00
zip_archive_stream_entry.cc
zip_archive_test.cc Support parsing of data descriptor 2020-03-31 12:01:12 -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 libziparchive: move the array of error strings into the implementation. 2020-03-17 14:10:59 -07:00
zip_error.h libziparchive: move the array of error strings into the implementation. 2020-03-17 14:10:59 -07:00
zip_writer.cc Support parsing of data descriptor 2020-03-31 12:01:12 -07:00
zip_writer_test.cc
ziptool-tests.xml cli-test: a tool for testing command-line programs. 2019-12-13 12:23:51 -08:00
ziptool.cpp Add definition for zip64 struct 2020-03-20 22:23:57 -07:00