[issue9720] zipfile writes incorrect local file header for large files in zip64

2013-01-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed. Thank you for report, Craig de Stigter. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue9720] zipfile writes incorrect local file header for large files in zip64

2013-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset ce869b05762c by Serhiy Storchaka in branch '2.7': Issue #9720: zipfile now writes correct local headers for files larger than 4 GiB. http://hg.python.org/cpython/rev/ce869b05762c New changeset b93848ca7760 by Serhiy Storchaka in branch '3.2': Issue

[issue9720] zipfile writes incorrect local file header for large files in zip64

2013-01-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are second variant patches for 2.7 and 3.2. -- Added file: http://bugs.python.org/file28558/zipfile_zip64_try_2-2.7.patch Added file: http://bugs.python.org/file28559/zipfile_zip64_try_2-3.2.patch ___ Python tr

[issue9720] zipfile writes incorrect local file header for large files in zip64

2013-01-04 Thread Nico Möller
Nico Möller added the comment: I most definitely need a patch for 2.7.3 Would be awesome if you could provide a patch for that version. -- nosy: +Nico.Möller ___ Python tracker

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-12-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What variant of patches should I commit? Or prepare other? -- ___ Python tracker ___ ___ Python-bug

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-12-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patches updated to resolve merge conflict with issue11981. Please review and apply any of this patches. This is needed for some other my zipfile patches. -- Added file: http://bugs.python.org/file28145/zipfile_zip64_always_2.patch Added file: http://b

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-11-26 Thread Jon Henry
Changes by Jon Henry : -- nosy: +jhenry82 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-11-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please, review the patches. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-10-19 Thread Ruben Gonzalez
Changes by Ruben Gonzalez : -- nosy: +Ruben.Gonzalez ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-10-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'd write the extended header when the current file size is larger than the zip64 limit (that is, when 'st.st_size > ZIP64_LIMIT' in the write method. That way the minimal header size is used whenever possible. As you noted this can cause problems when the fi

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-10-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What the conclusion about the patches? Which variant I should backport for older versions? -- versions: +Python 3.4 ___ Python tracker ___ ___

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-09-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> patch review Added file: http://bugs.python.org/file27263/zipfile_zip64_try.patch ___ Python tracker ___ ___

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-09-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I see two rational solutions of the issue (all written below is applicable only for allowZip64=True): 1) Always write Zip64 extended information extra field. This approach always successful, but the zipfile size will increase by 20 bytes for each file. The

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-09-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, on the contrary, it is not such easy to fix, and the patch is incorrect. Sorry that it is not clear either. The size of the header with extra args depends on the size of the file. The file size can be changed in the process of compressing, and compressed

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-09-18 Thread Christian Heimes
Christian Heimes added the comment: Serhiy: If I understand you correctly it should be easy to fix. The code in close() has to check if any file is beyond the ZIP64 limit and then write all headers with extra args. Is that correct? -- keywords: +needs review nosy: +christian.heimes __

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-09-18 Thread Kristof Keppens
Changes by Kristof Keppens : -- nosy: +Kristof.Keppens ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am afraid that the problem is more complicated. With the option allowZip64=True all files need to write with this extension, because size of local file header may change and there will be after compression just go back and rewrite it. Now it appears that

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-03-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-03-20 Thread David Andrzejewski
Changes by David Andrzejewski : -- nosy: +dandrzejewski ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue9720] zipfile writes incorrect local file header for large files in zip64

2011-11-03 Thread Nadeem Vawda
Nadeem Vawda added the comment: Issue 6434 was marked as a duplicate of this issue. -- nosy: +Paul, amaury.forgeotdarc, enlavin, lambacck, nadeem.vawda, segfault42 stage: -> needs patch versions: +Python 3.3 -Python 3.1 ___ Python tracker

Re: [issue9720] zipfile writes incorrect local file header for large files in zip64

2011-06-26 Thread goodwin.gt
your patch appropriately? Thanks. -- View this message in context: http://old.nabble.com/-issue9720--zipfile-writes-incorrect-local-file-header-for-large-files-in-zip64-tp29578646p31928738.html Sent from the Python - python-bugs-list mailing list archive at Nabble.com. _

[issue9720] zipfile writes incorrect local file header for large files in zip64

2010-09-06 Thread Alan McIntyre
Alan McIntyre added the comment: Here's an updated patch for the py3k trunk with tests. This pretty much doubles the runtime of test_zipfile64.py. The patch also removes some unnecessary code from the existing test_zipfile64 tests. Note: It looks like writestr will also suffer from a struct

[issue9720] zipfile writes incorrect local file header for large files in zip64

2010-09-05 Thread Craig de Stigter
Craig de Stigter added the comment: Hi, sorry no I haven't had time to add a real test for this -- ___ Python tracker ___ ___ Python-b

[issue9720] zipfile writes incorrect local file header for large files in zip64

2010-09-05 Thread Alan McIntyre
Alan McIntyre added the comment: Thanks for the patch, Craig; I should have some time later today or tomorrow to do a review. Did you have a patch for the test suite(s) as well? If not, I can just make sure your test case is covered in test_zipfile64. -- ___

[issue9720] zipfile writes incorrect local file header for large files in zip64

2010-09-03 Thread Craig de Stigter
Craig de Stigter added the comment: Yes, the bug still exists in Python 3.1.2. However, struct.pack() no longer silently ignores overflow, so I get this error instead: >>> z.write('foo.txt') Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.1/zipfile.py", line

[issue9720] zipfile writes incorrect local file header for large files in zip64

2010-09-03 Thread Éric Araujo
Éric Araujo added the comment: A tip about versions: Development happens on the current active branch, py3k (future 3.2 version), and bug or doc fixes are backported to the stable versions 2.7 and 3.1. Security fixes go into 2.6 too. Can you reproduce your bug in 2.7, 3.1 and 3.2? Adding Ala

[issue9720] zipfile writes incorrect local file header for large files in zip64

2010-08-30 Thread Craig de Stigter
New submission from Craig de Stigter : Steps to reproduce: # create a large (>4gb) file f = open('foo.txt', 'wb') text = 'a' * 1024**2 for i in xrange(5 * 1024): f.write(text) f.close() # now zip the file import zipfile z = zipfile.ZipFile('foo.zip', mode='w', allowZip64=True) z.write('foo.