[Patches] [Patch #101810] Fix MemoryError when decompressing empty string

noreply@sourceforge.net noreply@sourceforge.net
Fri, 6 Oct 2000 13:15:45 -0700


Patch #101810 has been updated. 

Project: 
Category: Modules
Status: Accepted
Summary: Fix MemoryError when decompressing empty string

Follow-Ups:

Date: 2000-Oct-06 13:07
By: jhylton

Comment:
Change this:
    if (0 < zst.avail_out)
to this:
    if (zst.avail_out > 0)
and it's fine.

Do you want to check it in or should I?

-------------------------------------------------------

Date: 2000-Oct-06 13:15
By: akuchling

Comment:
One final reservation: the zlib library's API is poorly defined.   As I interpret the docs quoted in the DejaNews posting, this change is correct.  It might break with old versions of the zlib library.  On the other hand, the current version has been 1.1.3 since 1998.

I'd suggest checking in the patch, but if you want to be conservative, let me know.  If I get a go-ahead in the next
hour or so, I'll be around to check it in.


 


-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=101810&group_id=5470