Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/serhiy-storchaka'closed_at=<Date2018-09-18.20:34:16.711>created_at=<Date2018-08-06.07:57:50.199>labels= ['3.7', '3.8', 'type-bug', 'library']
title='Appending to ZIP archive blows up existing Central Directory entries'updated_at=<Date2018-09-18.20:34:16.710>user='https://github.com/serhiy-storchaka'
When the ZIP archive is opened for appending, it reads the Central Directory at opening and writes existing entries back at closing. The Zip64 Extra Field is appended to existing Extra Fields if necessary. This leads to increasing the size of the Extra Fields data every time when append to the ZIP archive. Since the total size of Extra Fields is limited by 0xffff bytes, this can cause the failure.
The proposed PR removes the Zip64 Extra Field before adding a new Zip64 Extra Field.
New changeset 29034ba by Serhiy Storchaka in branch '2.7':
[2.7] bpo-34341: Fix appending to ZIP archives with the ZIP64 extension. (GH-8683). (GH-9400) 29034ba
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: