[New-bugs-announce] [issue23306] zlib.crc32 raises OverflowError at argument-parsing time on large strings
Danny Yoo
report at bugs.python.org
Sat Jan 24 00:49:26 CET 2015
New submission from Danny Yoo:
Reproduction steps:
---
$ python2.7 -c "import zlib;zlib.crc32('a'*(1<<31))"
Traceback (most recent call last):
File "<string>", line 1, in <module>
OverflowError: size does not fit in an int
---
We ran into this bug in zlib.crc32 when using zipfile.writestr() with a very large string; as soon as zipfile tried to write the crc checksum, it raised this error.
Python 3 does not appear to suffer from this bug.
----------
components: Library (Lib)
messages: 234587
nosy: Danny.Yoo, gregory.p.smith
priority: normal
severity: normal
status: open
title: zlib.crc32 raises OverflowError at argument-parsing time on large strings
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23306>
_______________________________________
More information about the New-bugs-announce
mailing list