[issue23306] Within zipfile, use of zlib.crc32 raises OverflowError at argument-parsing time on large strings
Gregory P. Smith
report at bugs.python.org
Sun Aug 7 12:32:30 EDT 2016
Gregory P. Smith added the comment:
This appears to have been fixed by at least issue27130's https://hg.python.org/cpython/rev/2192edcfea02 recent commits.
greg:cpython/build27$ ./python -c "import zlib;zlib.crc32('a'*(1<<31))"
greg:cpython/build27$ ./python ../zipfile_2gb_test.py
True
greg:cpython/build27$ ls -al /tmp/zip_test.zip
-rw-rw-r-- 1 greg greg 2087407 Aug 7 09:28 /tmp/zip_test.zip
greg:~/sandbox/python/cpython/build27$ unzip -t /tmp/zip_test.zip
Archive: /tmp/zip_test.zip
testing: big OK
No errors detected in compressed data of /tmp/zip_test.zip.
greg:cpython/build27$ unzip -l /tmp/zip_test.zip
Archive: /tmp/zip_test.zip
Length Date Time Name
--------- ---------- ----- ----
2147483648 2016-08-07 09:27 big
--------- -------
2147483648 1 file
----------
resolution: -> fixed
stage: needs patch -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23306>
_______________________________________
More information about the Python-bugs-list
mailing list