File: src/input.zig:323–337
Severity: HIGH
Status: ✅ FIXED — cap enforced at 1 MiB on osc_buf.append; buffer cleared and state drops to .ground on overflow. Unit test added verifying parser recovers after exceeding the cap.
Unlike dcs_buf (which enforces a 16 MiB payload limit), osc_buf continuously appends incoming stream bytes without checking an upper memory bound while in .osc_string state.
Impact: Unterminated OSC control sequences force szn to continuously allocate RAM until the server process crashes due to OOM.