Closed AgentD closed 4 years ago
As it turns out, the internal compression level field in the zstd compressor was left uninitialized (i.e. set to zero because the structure is allocated through calloc
).
When writing the compressor options, the libsquashfs would happily do so, because they are different from the default value (15). Later, the unsquashfs
tool will try to parse those options, but complains that they are invalid, because the default level for zstd compression is 1.
This should be fixed by commit b9b3b7663dffb83e112b5a4aaf786fcab23182fa.
@AgentD Here is an example of what I did:
And using gzip:
The summary is:
Maybe the
unsquashfs
tool is buggy or I did something wrong ;-)Both taken from debian packges. I haven't checked if they patched it thought.
Originally posted by @renard in https://github.com/AgentD/squashfs-tools-ng/issues/4#issuecomment-631504227