[BUGFIX] Zlib

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[BUGFIX] Zlib

Reinout Heeck-2
Hi all,

Attached are the patches we have for the Compression-Zlib package. These fixes will solve the following issues:
  1. When trying to calculate the crc in text mode the call to cCrc32: crc buffer: collection length: length fails with a bad argument 2. The collection argument is a string and the dllcc interface does some magic with it and doesn't accept it anymore as a valid argument. Passing the collections fixedHeapAddress (the collection lives in FixedSpace) will solve the problem since no magic is being done.
  2. Trying to put multiple strings on the stream and flushing in between will also fail. The current implementation close the stream when DeflateStream>>writeBuffer is called with true. This is done in the flush method. Included is a new version of the flush functionality.

Furthermore
I request that the zlib version in the vm is updated. Currently 1.1.4 is used. The latest version is 1.2.3 from July 18, 2005. This version is a lot quicker than the 1.1.4 version.

Since these issues also exist on 7.5.1 I will post this also on the VW Dev list

Regards,

Cham

Compression-ZLib patches.zip (1K) Download Attachment