Small bug in zlib module

Peter Schneider-Kamp petersc at stud.ntnu.no
Tue Jun 6 12:42:06 EDT 2000


Greg Chapman wrote:
> 
> Using Python 1.5.2 (under Windows 98), this script causes python to enter a
> loop in which it progressively allocates larger and larger blocks of memory:
> 
>   import zlib
>   s = zlib.decompress("")
> I assume PyZlib_decompress should have a check for an empty input string and
> (if found) should generate an appropriate exception.

On the current CVS version it immediately (as far as I can see without
looping) returns with an error.

appropriateness-is-another-question-though-ly y'rs Peter
--
Peter Schneider-Kamp          ++47-7388-7331
Herman Krags veg 51-11        mailto:peter at schneider-kamp.de
N-7050 Trondheim              http://schneider-kamp.de




More information about the Python-list mailing list