facebook / facebook/zstd

ZSTD_decompressStream crashed on Ubuntu after v1.5.6

Open
#4,467 1 comment 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

**Describe the bug**
I have written a flutter plugin with libzstd. It's works fine on Android, iOS, macOS and Windows with v1.5.7. But the example app crashed when I runing it on Ubuntu. After some debug, I can confirm the crash happened after the ZSTD_decompressStream is called, this crash happened with v1.5.6 and v1.5.7, can be fixed with v1.5.5

**To Reproduce**
Steps to reproduce the behavior:
1. Clone this repo: https://github.com/yanshouwang/zstd
2. Run the example in zstd on Ubuntu, the app crashed without any output
3. Change the GIT_TAG in zstd_native/src/cmake/zstd.cmake to v1.5.5, run the example and the crash will gone.

**Expected behavior**
ZSTD_decompressStream should work on Ubuntu with the latest version.

**Screenshots and charts**

Image

Crashed with v1.5.6 and v1.5.7

Image

Works fine with v1.5.5

**Desktop (please complete the following information):**
- OS: Ubuntu
- Version 24.04.3 LTS
- Compiler [e.g. gcc]
- Flags [e.g. O2]
- Other relevant hardware specs [e.g. Dual-core]
- Build system CMake

**Additional context**
Add any other context about the problem here.

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.