platform_system_core/libziparchive
Tianjie abf60c8d2e Handle the invalid timestamp in zipfile
The month field is one based in the zipfile modification time. And
it causes an overflow converting it to struct tm. Switch to type to
signed integer to suppress the sub-overflow.

Bug: 153882979
Test: parse the problematic zipfile
Change-Id: Iaf47bcc7f83d61b18c9e7a98bb6ab3936c9257e3
Merged-In: Iaf47bcc7f83d61b18c9e7a98bb6ab3936c9257e3
(cherry picked from commit 426bf3a1f1)
2020-04-16 04:34:00 +00:00
..
cli-tests cli-test: a tool for testing command-line programs. 2019-12-13 12:23:51 -08:00
include/ziparchive Handle the invalid timestamp in zipfile 2020-04-16 04:34:00 +00:00
testdata Fix SEGV in libziparchive with malformed zip file. 2019-12-17 08:39:09 -08:00
.clang-format
Android.bp Rename unzip.cpp to ziptool.cpp. 2019-12-13 16:47:22 -08:00
entry_name_utils-inl.h Ziparchive: Enable -Wconversion 2019-04-05 13:50:48 -07:00
entry_name_utils_test.cc
libziparchive_fuzzer.cpp libziparchive: add trivial fuzzer. 2019-10-22 11:45:49 -07:00
OWNERS Add OWNERS. 2017-12-07 13:30:03 -08:00
run-ziptool-tests-on-android.sh cli-test: a tool for testing command-line programs. 2019-12-13 12:23:51 -08:00
zip_archive.cc Handle the invalid timestamp in zipfile 2020-04-16 04:34:00 +00:00
zip_archive_benchmark.cpp [zip] Stop calculating crc if it's not checked 2020-04-13 19:09:44 +00:00
zip_archive_common.h
zip_archive_private.h Allow loading zip at an offset in fd 2020-03-18 13:39:49 -07:00
zip_archive_stream_entry.cc Ziparchive: Enable -Wconversion 2019-04-05 13:50:48 -07:00
zip_archive_test.cc Allow loading zip at an offset in fd 2020-03-18 13:39:49 -07:00
zip_writer.cc Avoid using data descriptors in ZIP files when possible. 2019-07-23 06:58:53 +00: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 Rename unzip.cpp to ziptool.cpp. 2019-12-13 16:47:22 -08:00