summaryrefslogtreecommitdiff
path: root/python/python_test.go
diff options
context:
space:
mode:
author Kelvin Zhang <zhangkelvin@google.com> 2020-07-30 17:12:38 -0400
committer Kelvin Zhang <zhangkelvin@google.com> 2020-08-06 15:48:04 -0400
commit45e2f1405dcae0498c35b780717256dc619e4e05 (patch)
tree4e64011d3d726365ef2af2aef7be231a1c710801 /python/python_test.go
parentea3574b5fab70527d23f834f34f1583eee6e900f (diff)
Fix zip64 reader when file size is < 4GB and 32 bit fields are -1
When CopyFrom writes a zipentry, it strips extra fields and generates data descriptors. When writing data descriptors, it only writes 64 bit values if the relevant sizes are >4GB. In some cases, the sizes are <4GB but 32 bit sizes are set to -1. In this situation, CopyFrom will write incorrect local file header, resulting in a zip file that can't be parsed by standard zip tools. Test: Unit Tests Bug: 161922066 Change-Id: I64319a80647013eaf7693cf8bf5c6120016913a3
Diffstat (limited to 'python/python_test.go')
0 files changed, 0 insertions, 0 deletions