Skip to content

fix: bound pre-auth websocket message nesting and size - #2

Merged
zackees merged 1 commit into
masterfrom
fix/99-depth
Oct 13, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/99-depth

Conversation

@zackees

@zackees zackees commented Oct 13, 2026

Copy link
Copy Markdown
Member

Summary

Reject pre-auth JSON and MsgPack frames over 16 MiB or nested beyond 128 containers before nlohmann's recursive parser runs. Preserve the existing malformed-input close details where the depth limit is not exceeded.

Fixes obs-rust/obs-studio#99 together with the parent repository's Tier 4 regression and submodule pointer update.

Validation

  • Full OBS obs-websocket and frontend targets compiled in the project build image.
  • The new wire regression was RED against OBS 32.1.2: a deep MsgPack frame closed abnormally with 1006 and killed OBS.
  • The built fork returns 4002 for both deep JSON and MsgPack frames and stays alive.
  • The broader Tier 4 run reached request coverage but the built OBS process crashed after an audio-monitor request; this is being isolated in the parent PR.

@zackees
zackees merged commit 7d89109 into master Oct 13, 2026
1 check passed
@zackees
zackees deleted the fix/99-depth branch October 13, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[crash] obs-websocket: deeply nested JSON/MsgPack payload overflows the stack pre-auth

1 participant