How to decompress/deflate zlib data [rfc1951]?

1.2k Views Asked by At

I am looking for decompressing data according to the deflate compression mechanism [rfc1951].

The linux command for this mechanism is: zlib-flate -uncompress

I try the Red command decompress with refinements deflate , but it crashes or the result is wrong (it looks like a crash or a memory dump).

Is there a sample to use decompress/deflate ?

>> type? b1
== binary!
>> length? b1
== 326
>> decompress/deflate b1 326

*** Runtime Error 16: invalid virtual address
*** at: 080AB560h
1

There are 1 best solutions below

1
9214 On

Unfortunately, at the time of writing, Red's implementation of DEFLATE is buggy and likely won't be able to decompress data that it itself did not compress.

If you still experience this crash with the latest Linux build, please file a ticket for it.