[issue39064] ValueError in zipfile.ZipFile
jvoisin
report at bugs.python.org
Mon Dec 16 07:58:42 EST 2019
New submission from jvoisin <jvoisin at google.com>:
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-4da08e9ababa495ac51ecad588fd61081a66b5bb6e7a0e791f44907fa274ec62
Traceback (most recent call last):
File "ziprepro.py", line 4, in <module>
zipfile.ZipFile(sys.argv[1])
File "/usr/lib/python3.7/zipfile.py", line 1225, in __init__
self._RealGetContents()
File "/usr/lib/python3.7/zipfile.py", line 1310, in _RealGetContents
fp.seek(self.start_dir, 0)
ValueError: cannot fit 'int' into an offset-sized integer
```
The ValueError exception isn't documented as a possible exception when using zipfile.ZipFile ( https://docs.python.org/3/library/tarfile.html ).
----------
components: Library (Lib)
files: crash-4da08e9ababa495ac51ecad588fd61081a66b5bb6e7a0e791f44907fa274ec62
messages: 358484
nosy: jvoisin
priority: normal
severity: normal
status: open
title: ValueError in zipfile.ZipFile
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file48782/crash-4da08e9ababa495ac51ecad588fd61081a66b5bb6e7a0e791f44907fa274ec62
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39064>
_______________________________________
More information about the Python-bugs-list
mailing list