You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:173get_ue_golomb can evaluate 1 << 32 (UB) on a truncated SPS.
obs-websocket v5: the only external network API (plugins/obs-websocket).
Proposal
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).
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.
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
Merge pull request #39 from obs-rust/grind/8-phase5-graphics-vec2
zackees commentedon Oct 9, 2026
Landed on feature branch grind/meta-4-9b41 via #39; closes when feature PR #33 merges into master.
zackees commentedon Oct 9, 2026
Closed by feature PR #33, but this phase landed only partially. The remaining work is tracked in #45 (a sub-issue of #4).
feat(graphics): port vec2 math to Rust obs-graphics crate (obs-rust#8)
test(graphics): pin vec2_close epsilon boundary against the C oracle (o…
style(util): rustfmt export_list test (obs-rust#8)