Skip to content

Guard unchecked slice and map indexing against panics - #501

Open
KillerX wants to merge 2 commits into
fix/18-crop-shorts-ffprobefrom
fix/19-panic-indexing
Open

Guard unchecked slice and map indexing against panics#501
KillerX wants to merge 2 commits into
fix/18-crop-shorts-ffprobefrom
fix/19-panic-indexing

Conversation

@KillerX

@KillerX KillerX commented Aug 21, 2026

Copy link
Copy Markdown
Member

Empty-input and missing-key indexing in MultitrackMux, the ingest multitrack workflow, playout mux stream maps, vsapi GetInOut, and trigger_ui resolution indexes from form input now return errors / HTTP 400 instead of panicking.

Part of the stacked bugfix series fix/00 → fix/20; based on fix/18-crop-shorts-ffprobe.

🤖 Generated with Claude Code

@KillerX
KillerX force-pushed the fix/19-panic-indexing branch from 765d296 to 8b586d4 Compare August 21, 2026 10:59
KillerX and others added 2 commits August 21, 2026 13:08
MultitrackMux and the Multitrack ingest workflow now error on empty
input instead of panicking on files[0]; the playout mux stream-picker
closures report exhausted or missing languages as errors instead of
panicking mid-argument-build; GetInOut treats a present-but-empty title
slice the same as a missing one; and the trigger UI validates
form-supplied resolution indexes and answers 400 instead of crashing on
out-of-range values.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@KillerX
KillerX force-pushed the fix/19-panic-indexing branch from 8b586d4 to d9babd3 Compare August 21, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant