Skip to content

fix(webrtc): reject missing candidate output buffers - #934

Merged
matteius merged 2 commits into
mainfrom
ai-findings-autofix/src-utils-webrtc_candidates.c
Nov 9, 2026
Merged

matteius merged 2 commits into
mainfrom
ai-findings-autofix/src-utils-webrtc_candidates.c

Conversation

@matteius

@matteius matteius commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

A nonempty external-candidate list could dereference a NULL output buffer. Reject missing output storage and nonpositive capacity immediately after the existing separator scan, while preserving zero for NULL, empty, and separator-only lists.

Document the output-buffer contract and cover invalid arguments, unchanged output on rejection, duplicate candidates at capacity, and an overflow sentinel.

Validation: the go2rtc process/config test suite passed in normal and AddressSanitizer/UBSan builds (leak detection enabled).

matteius and others added 2 commits November 8, 2026 19:04
…ofix

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
@matteius matteius changed the title Potential fix for 1 code quality finding fix(webrtc): reject missing candidate output buffers Nov 9, 2026
@matteius
matteius marked this pull request as ready for review November 9, 2026 00:10
@matteius
matteius merged commit 2c9b469 into main Nov 9, 2026
5 of 12 checks passed
@matteius
matteius deleted the ai-findings-autofix/src-utils-webrtc_candidates.c branch November 9, 2026 00:11
@codecov

codecov Bot commented Nov 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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