facebook / facebook/zstd

ZSTD CDict compression doesn't seem to work when build using MSVC on release mode

Open
#4,624 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
27.9k
Forks
2.6k
Avg merge
1d 3h
Merged PRs (30d)
8

Description

I'm going nonstandard, I know... But, I build ZSTD (and other libs) by my own commandline tool, that basically just takes all source codes and compiles them without any further defines or anything. In DEBUG modeeverything works just fine - streaming and dictionary based (ZSTD_compress_usingCDict..) works as expected.
BUT when I compile it using CL or Clang-CL 2026 in release mode, calling ZSTD_compress_usingCDict and then calling ZSTD_decompress_usingDDict (different context of course) ends up saying "Invalid compressed frame.".

Any ideas? Perhaps some defines need to be added?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.