commit | c90faebdac23e705fe5faa1d0bc9b0ad467ac72d | [log] [tgz] |
---|---|---|
author | Tianjie <xunchang@google.com> | Wed Apr 15 16:30:39 2020 -0700 |
committer | Tianjie Xu <xunchang@google.com> | Thu Apr 16 04:34:00 2020 +0000 |
tree | 668caac31cc364710a27b7063614cb57c7b56685 | |
parent | 8056ce190c16a90254da99e11e9478f66ab18574 [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)