Skip to content

Phase 5: beyond util — graphics math, media-io, AVC/HEVC/AV1 parsers, obs-websocket Tier 4 #8

Closed

Description

@zackees

Part of the roadmap meta issue. Requires Phases 2–4.

Context

After util, the best-tested targets are pure computational code, plus the one network API.

  • libobs/graphics/ math (vec2/3/4, matrix3/4, quat, plane, bounds, axisang): pure functions, ideal for Tier 3.
  • libobs/media-io/ (audio/video format conversion, resampling glue).
  • libobs/obs-avc.c, obs-hevc.c, obs-av1.c: bitstream header parsing on untrusted input. Known C hazard: obs-avc.c:173 get_ue_golomb can evaluate 1 << 32 (UB) on a truncated SPS.
  • obs-websocket v5: the only external network API (plugins/obs-websocket).

Proposal

  1. Graphics math: Tier 1 + Tier 3 parity with float comparison (exact bit equality where the C is deterministic; documented ULP tolerance where SIMD paths differ).
  2. Parsers: Tier 3 as coverage-guided fuzzing (cargo fuzz) against the C oracle. Inputs that reach C UB are excluded explicitly and listed as intentional differences.
  3. obs-websocket: a black-box Tier 4 suite over the wire (requests, events, auth handshake, error codes). Written and green against the current C++ server first, before any port.

Acceptance criteria

  • Graphics math and media-io ports: RED → GREEN, Tier 2 OFF/ON, Tier 3 parity, mutation check.
  • Parser fuzz targets run ≥ 1h per parser with no oracle mismatch outside documented UB exclusions.
  • Tier 4 websocket suite covers every v5 request type and passes against the C++ server.

Decisions

  • Websocket Tier 4 is built against the existing server before porting, so it is a real regression oracle.
  • The get_ue_golomb UB is filed and fixed separately in C, not silently "fixed" by the port.

Activity

  1. added
    enhancement
    on Oct 8, 2026
  2. added a commit that references this issue on Oct 9, 2026
  3. zackees commented on Oct 9, 2026

    @zackees
    MemberAuthor

    Landed on feature branch grind/meta-4-9b41 via #39; closes when feature PR #33 merges into master.

  4. zackees commented on Oct 9, 2026

    @zackees
    MemberAuthor

    Closed by feature PR #33, but this phase landed only partially. The remaining work is tracked in #45 (a sub-issue of #4).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions