summaryrefslogtreecommitdiff
path: root/libutils/FileMap_test.cpp
diff options
context:
space:
mode:
authorTianjie <xunchang@google.com>2020-04-15 16:30:39 -0700
committerTianjie Xu <xunchang@google.com>2020-04-16 04:34:00 +0000
commitabf60c8d2ed4aa538baabf53738beb565729e4eb (patch)
tree668caac31cc364710a27b7063614cb57c7b56685 /libutils/FileMap_test.cpp
parent418f28dbe4540df2dbb770ff21ce3d4b0e2e9090 (diff)
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 426bf3a1f19255b9b8afd18c2d867b9644bdd12e)
Diffstat (limited to 'libutils/FileMap_test.cpp')
0 files changed, 0 insertions, 0 deletions