homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: zlib.crc32 doesn't handle 0xffffffff seed
Type: Stage:
Components: Extension Modules Versions: Python 2.5
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, dyoo
Priority: normal Keywords: patch

Created on 2005年11月07日 18:25 by dyoo, last changed 2022年04月11日 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
zlibmodule.c.diff dyoo, 2005年11月07日 18:25 patch to zlibmodule.c to handle unsigned long seed
Messages (2)
msg48984 - (view) Author: Danny Yoo (dyoo) Date: 2005年11月07日 18:25
Reported by John Schmidt: zlibc.crc32 doesn't appear to
properly parse its seed argument. For example:
######
>>> zlib.crc32('foobar',0xFFFFFFFF))
OverflowError: long int too large to convert to int
######
This appears to be fixed if we make the included patch
to zlibmodule. I haven't tested this on a 64-bit
platform, though; can someone look into this?
Hope this helps!
msg48985 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2005年11月22日 15:39
Logged In: YES 
user_id=11375
I've applied your suggested fix to the HEAD and
release24-maint branches. Thanks!
History
Date User Action Args
2022年04月11日 14:56:13adminsetgithub: 42565
2005年11月07日 18:25:02dyoocreate

AltStyle によって変換されたページ (->オリジナル) /