commit | 426bf3a1f19255b9b8afd18c2d867b9644bdd12e | [log] [tgz] |
---|---|---|
author | Tianjie <xunchang@google.com> | Wed Apr 15 16:30:39 2020 -0700 |
committer | Tianjie <xunchang@google.com> | Wed Apr 15 16:32:42 2020 -0700 |
tree | b2439a62b4217582aed6060bf38b1c31302e4c5c | |
parent | 0b708cba86d04442cffe5d76bb11e90fa03f8155 [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