Skip to content

ZSTD_decompressStream crashed on Ubuntu after v1.5.6 #4467

@yanshouwang

Description

@yanshouwang

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.

Metadata

Metadata

Assignees

No one assigned

    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