[issue39064] ValueError in zipfile.ZipFile

2022-04-03 Thread Sam Ezeh
Change by Sam Ezeh : -- pull_requests: +30353 pull_request: https://github.com/python/cpython/pull/32291 ___ Python tracker ___ ___

[issue39064] ValueError in zipfile.ZipFile

2022-04-03 Thread Sam Ezeh
Sam Ezeh added the comment: Yes, of course. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue39064] ValueError in zipfile.ZipFile

2022-04-03 Thread Irit Katriel
Irit Katriel added the comment: Sam, can you put that in a PR please? -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue39064] ValueError in zipfile.ZipFile

2022-04-03 Thread Sam Ezeh
Sam Ezeh added the comment: One way of doing this is by making the central directory offset negative by first taking the zip file containing just an EOCD record and then listing the total size of the central directory records as positive. ``` Python 3.11.0a4+ (heads/bpo-39064:eb1935dacf, Apr

[issue39064] ValueError in zipfile.ZipFile

2022-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Try to create a normal ZIP file (it can be empty), then try to set some byte to FF (or a pair of bytes to , or 4 consequent bytes to , until you get the exactly same error). Then you can just add the binary dump of that file in tests.

[issue39064] ValueError in zipfile.ZipFile

2022-04-03 Thread Sam Ezeh
Change by Sam Ezeh : -- nosy: +sam_ezeh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue39064] ValueError in zipfile.ZipFile

2022-01-24 Thread Irit Katriel
Irit Katriel added the comment: It's easy enough to convert the exception type (see patch), but I don't know how to write a unit test for this. -- ___ Python tracker ___

[issue39064] ValueError in zipfile.ZipFile

2022-01-24 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +29044 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30863 ___ Python tracker ___ ___

[issue39064] ValueError in zipfile.ZipFile

2022-01-17 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39064] ValueError in zipfile.ZipFile

2022-01-17 Thread jvoisin
jvoisin added the comment: Yes, I can reproduce it: ``` $ python3 --version Python 3.9.9 $ python3.9 ziprepo.py ./crash-4da08e9ababa495ac51ecad588fd61081a66b5bb6e7a0e791f44907fa274ec62 Traceback (most recent call last): File "/home/jvoisin/Downloads/ziprepo.py", line 4, in zipfile.Zi

[issue39064] ValueError in zipfile.ZipFile

2022-01-16 Thread Irit Katriel
Irit Katriel added the comment: It's unlikely that anyone will download a binary from bpo and open it. Can you help us reproduce the issue without that? First question is whether you can reproduce this on a version of python that is still in maintenance - 3.9 or higher? -- nosy: +ir

[issue39064] ValueError in zipfile.ZipFile

2019-12-16 Thread jvoisin
New submission from jvoisin : The attached file produces the following stacktrace when opened via `zipfile.ZipFile`, on Python 3.7.5rc1: ``` $ cat ziprepro.py import zipfile import sys zipfile.ZipFile(sys.argv[1]) ``` ``` $ python3 ziprepro.py crash-4da08e9ababa495ac51ecad588fd61081a66b5bb