‹ BackHN Continuity

Thread

Memory-Safe WebP Decoding

69 points · 28 comments · computerbuster

  1. pizlonator · · focus · HN ↗
    webp builds with fil-C just fine if you want actual memory safety.

    This is great but it’s got caveats:

    - assembly code. They may have been careful but it’s an escape hatch

    - if it has basically any dependencies then those are likely to transitively pull in more unsafe code

    1. computerbuster · · focus · HN ↗
      1. Can be compiled without assembly, and I believe SIMD can be written safely if you think about what it is actually doing 2. The only dependency is zerocopy which is used in a lot of major projects considered to be safe
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.