Skip to content

File compressed with wlog=25 gets corrupted #3350

@tansy

Description

@tansy

Describe the bug
File compressed with wlog=25 gets corrupted

To Reproduce
I tried to compress silesia.tar with wlog=25. I went fine but when tested i reported error and decompression to stdout failed in the middle of the file.

$ zstd -k -19 --zstd=wlog=25 silesia.tar
$  zstd -t silesia.tar.zst 
silesia.tar.zst      : 84.9 MiB...     silesia.tar.zst : Decoding error (36) : Corrupted block detected 

I uploaded these files to the cloud. You can check them here:
Original, compressed: silesia.tar.lz
Corrupted zst: silesia.tar.zst

Expected behavior
To be able to decompress compressed file.

Desktop (please complete the following information):

  • OS: linux
  • Version: zstd-v1.5.2
  • Compiler: gcc
  • Flags: default
  • Build system: Makefile

Just tested brand new dev branch with the same result.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions