abf60c8d2e
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
|
||
---|---|---|
.. | ||
cli-tests | ||
include/ziparchive | ||
testdata | ||
.clang-format | ||
Android.bp | ||
entry_name_utils-inl.h | ||
entry_name_utils_test.cc | ||
libziparchive_fuzzer.cpp | ||
OWNERS | ||
run-ziptool-tests-on-android.sh | ||
zip_archive.cc | ||
zip_archive_benchmark.cpp | ||
zip_archive_common.h | ||
zip_archive_private.h | ||
zip_archive_stream_entry.cc | ||
zip_archive_test.cc | ||
zip_writer.cc | ||
zip_writer_test.cc | ||
ziptool-tests.xml | ||
ziptool.cpp |