Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Bug in zlib (ignat1990.wordpress.com)
3 points by ignat on Feb 18, 2013 | hide | past | favorite | 3 comments


Nice work!

    >>> import zlib
    >>> s = open("uncompressable_block").read()
    >>> t = zlib.compress(s, 9)
    >>> s2 = zlib.decompress(t)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    zlib.error: Error -3 while decompressing data: invalid distances set
    >>>


Unfortunately I deleted the uncompressable block becaue of NDA reasons. And I get the reply from authors, see it in comments to the post.


Okay, I no longer have a copy of the data. I removed the file I downloaded and it's not on my backups.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: