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 <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