[Patches] [Patch #103753] zlib decompress; uncontrollable memory usage
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 20 Feb 2001 18:48:53 -0800
Patch #103753 has been updated.
Project: python
Category: Modules
Status: Open
Submitted by: htrd
Assigned to : akuchling
Summary: zlib decompress; uncontrollable memory usage
Follow-Ups:
Date: 2001-Feb-20 18:48
By: akuchling
Comment:
Rather than introducing a new method, why not just add an optional maxlen
argument to .decompress(). I think the changes would be:
* add 'int maxlen=-1;'
* add "...|i" ... ,&maxlen to the argument parsing
* if maxlen != -1, length = maxlen else length = DEFAULTALLOC;
* Add '&& maxlen==-1' to the while loop. (Use the current CVS; I just
checked in a patch rearranging the zlib module a bit.)
Do you want to make those changes and resubmit the patch?
-------------------------------------------------------
-------------------------------------------------------
For more info, visit:
http://sourceforge.net/patch/?func=detailpatch&patch_id=103753&group_id=5470