Bogus deflate/inflate init values

Project:GNU Smalltalk
Component:Bindings (other)
Category:bug
Priority:normal
Assigned:Unassigned
Status:invalid
Attachment:gst-zlib.patch (526 bytes)
Description

Hi,

i've experienced interoperability problems with
gst zlib and other zlib implementations (eg. Compress::Zlib perl module).

It seemed to came down to the window size init value
of -15, which seemed incorrect. The documentation
of zlib recommends a (default) value of 15.

The attached patch should fix that.

Updates

#1 submitted by Paolo Bonzini on Tue, 10/23/2007 - 12:09
Status:patch» invalid

If you want a window size of 15, use InflateStream. -15 is used by RawInflateStream, which is the class you want to use if for example you're decompressing ZIP files.

#2 submitted by Robin Redeker on Tue, 10/23/2007 - 12:32

Ok, never mind then. Sorry for my confusion, the patch did indeed break
even interop with itself :)

User login