Giter Club home page Giter Club logo

Comments (1)

Viq111 avatar Viq111 commented on September 23, 2024

Hi @klauspost !

Thanks a lot for taking the time to run this through a fuzzer!
For this one, the zstd cli and the go library are not at feature parity (i.e: a payload encoded with one and decoded with the other will not usually) works. This is because the zstd cli adds some headers and implements more features (for example: checksums #43)
To confirm the behavior, I just tried your example with another bindings from a different author, the main one for python: https://pypi.org/project/zstd/

And I get the same results:

>>> import zstd
>>> with open("2aa9ddad029fa86d4e4831b22051a3b8414f015f.zst", "rb") as f:
...   a = f.read()
>>> zstd.decompress(a)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
zstd.Error: Decompression error: Corrupted block detected

The other 2 examples that the fuzzer uncovered looks like bugs though (#60 for sure, #59 needs more investigation)

from zstd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.