← All projects
Project record1 mention
Originally shared on Hacker News

validate

A universal file format validator written in Zig that validates every byte of common file formats, with support for about 190 formats at varying coverage levels. It provides a C FFI and a CLI for mac, windows, and linux, addressing the fact that many file formats lack checksums and some format parsers don't break on corrupt data.

Last shared
01 / The problem

What it addresses

Many file formats don't have checksums, and some formats' parsing won't break on corrupt data, making corruption hard to detect.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. validate

    A universal file format validator written in Zig that validates every byte of common file formats, with support for about 190 formats at varying coverage levels. It provides a C FFI and a CLI for mac, windows, and linux, addressing the fact that many file formats lack checksums and some format parsers don't break on corrupt data.

    Problem: Many file formats don't have checksums, and some formats' parsing won't break on corrupt data, making corruption hard to detect.

    Posted by @pmarreck · Original source ↗

    Source text · @pmarreck · · Source ↗

    A "universal" format validator whose goal is to validate every byte of as many of the most common file formats as possible (I'm up to about 190, to varying degrees of coverage; turns out many formats don't have checksums, and some formats' parsing won't break on corrupt data)