summaryrefslogtreecommitdiffstats
path: root/tzdata
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2015-07-31 11:28:42 +0100
committerNarayan Kamath <narayan@google.com>2015-07-31 16:46:13 +0100
commit6b37f0bb40c3789833a9fd02c321d68354c6ecaf (patch)
treeebb9a846f7bbe524ff43e896aaad91cb49bfce70 /tzdata
parent6068576078b1465d15750ebd0275ad20b0d895a2 (diff)
downloadlibcore-6b37f0bb40c3789833a9fd02c321d68354c6ecaf.zip
libcore-6b37f0bb40c3789833a9fd02c321d68354c6ecaf.tar.gz
libcore-6b37f0bb40c3789833a9fd02c321d68354c6ecaf.tar.bz2
Fix broken Zip64 extended info size checks.
We assumed that all fields listed in the extended info layout were always present. This is not the case. Only the size / uncompressed size are required fields (in the LFH) and the directory offset is required only if the corresponding field in the regular record is 0xFFFFFFFF. The same goes for disk number too, but we don't support spanned archives, so we can assume that it's never present. This change also fixes a spec violation where we were *not* writing 0xFFFFFFFF to the central directories LFH offset field when we were putting the actual information in the Zip64 Extended info field. This change also adds lower level unit tests to some of the Zip64 parsing functions since it's pretty hard (impossible ?) to find a Zip64 tool that outputs stuff in the format we want. bug: 22851464 (cherry picked from commit 837aeb356c331960073e5ddbf449779c6194f164) Change-Id: I031b3151b7deeda8a0a98acfba3f5a906c0c360c
Diffstat (limited to 'tzdata')
0 files changed, 0 insertions, 0 deletions