Gregory P. Smith added the comment:

This bug prevents zipfile's writestr() from writing large data (longer than 
UINT_MAX) to a 64-bit zip file.

The zlib.crc32 function which, as written, cannot accept input with a size 
larger than an unsigned int.

https://hg.python.org/cpython/file/94ec4d8cf104/Modules/zlibmodule.c#l964

Python 3 has updated this to call the zlib crc32 function multiple times in 
this situation:

https://hg.python.org/cpython/file/93888975606b/Modules/zlibmodule.c#l1210

so the fix exists, we just need to do this in 2.7.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23306>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to