While trying to figure out why Matlab can read its own compressed .mat files that have a missing checksum, I found info that it just doesn't check it and that this can be replicated with zlib with setting the proper negative value of windowbits.
It works when I comment out the check:
|
if !(8 ≤ windowbits ≤ 15) |
|
throw(ArgumentError("windowbits must be within 8..15")) |
|
end |
but maybe we could just allow other ranges of valid values (or at least the one from -15 to -8)?
While trying to figure out why Matlab can read its own compressed .mat files that have a missing checksum, I found info that it just doesn't check it and that this can be replicated with zlib with setting the proper negative value of
windowbits.It works when I comment out the check:
CodecZlib.jl/src/decompression.jl
Lines 80 to 82 in 8ac30ef
but maybe we could just allow other ranges of valid values (or at least the one from -15 to -8)?