Unofficial Hacker News companion — get notified on comment replies, and more.

Show HN: misa77 – Up to 3x faster decompression than zstd, with better ratios (opens external site)

248 points by nonadhocproblem 15 hours ago github.com 81 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (5)

  1. Compression is really cool, and while bandwidth goes to waste without it there are (historically) so many bugs around it. Maybe this will get better with AI hammering at it, but there's so many buffer overflow bugs, chained decompression bugs, DoS attacks, etc. It's surprisingly difficult to get right.
    Replies (2)
    1. Yeah I find it pretty surprising how "intricate" most of these formats get by basically just stacking heuristics or having completely different impls across compression levels (this is not intuitive to me, I'd have expected more of a gradient or).

      Fortunately fuzzing has become really easy now, but this is a very easy target for an attacker to hit with a adversarial payload because it's not cryptographically secure. It's been pretty hit or miss for me whether I can get regular consumer agents to do "content/binary-aware security testing" on this stuff without freaking out.

      But this is itself a climbable problem so, I'm sure it's possible to address this. At a cost of $200 per binary :)

    2. How is it possible to hack some code that calls zstd::decompress on a bounded buffer? I am genuinely confused by this, but a lot people wrote this here so I assume there is some problem with it.

      Is this kind of like OpenSSL being terrible but the crypto libraries being good?

      Replies (1)
      1. The problems are not usually with the compression libraries themselves, but rather the users of the libraries.

        Things like MongoBleed (CVE-2025-14847), are what I am thinking of.

        Replies (1)
        1. People going crazy about writing compression libraries in rust are hallucinating then.

          I think this is the same in crypto as all crypto primitive libraries are ASM/C and they are really solid compared to something like OpenSSL