Skip to content

New target class: Tree Sitter parser fuzzing harnesses #154

Description

@quinn-dougherty

Background

From the 2026-06-22 evals team meeting: the team is pivoting from OSS-Fuzz/ARVO targets (already hardened) to "wild" parsers with real-world impact and no existing fuzzing coverage. Tree Sitter parsers are used by Zed, GitHub (syntax highlighting), Neovim, and many other high-profile projects. They are written in C and expose a stable C API, making them straightforward to wrap with libfuzzer.

Scope

  • Pick 2–3 high-impact grammar repos (candidates: tree-sitter-python, tree-sitter-javascript, tree-sitter-c)
  • Write libfuzzer harnesses wrapping the Tree Sitter C API (ts_parser_parse_string)
  • Add to targets/ following OSS-Fuzz conventions (Dockerfile, build.sh, metadata.yaml)
  • Seed corpus: small valid source files for each grammar
  • Format dictionary: language-specific keywords/tokens

Acceptance criteria

Notes

Fallback: if a grammar's C library is awkward to link, the tree-sitter runtime itself (libtree-sitter) is a valid secondary target. Even parsing crashes in the runtime are high-value given its deployment surface.

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