Skip to content

[pull] main from livekit:main - #469

Merged
pull[bot] merged 1 commit into
erickirt:mainfrom
livekit:main
Sep 3, 2026
Merged

[pull] main from livekit:main#469
pull[bot] merged 1 commit into
erickirt:mainfrom
livekit:main

Conversation

@pull

@pull pull Bot commented Sep 3, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

SDPFragment.Unmarshal indexed into a line knowing only that it was
non-empty, so a bare "m" line panicked on line[2:] and a bare "a" line
panicked on line[1]. Both are reachable from a client supplied WHIP
Trickle ICE fragment. Length check before indexing, and require an m=
line to carry a value since Marshal drops the m= line when info is
empty.

While in the file:

  - GetIP dereferenced ConnectionInformation.Address, which is a
    pointer and can be nil, after only checking ConnectionInformation
    itself.

  - PatchICECredentialAndCandidatesIntoSDP removed candidate attributes
    while ranging over the same slice by index. range captured the
    original length, so after the first removal every index was stale:
    consecutive candidates were skipped and stale trailing elements
    re-read, leaving old candidates behind on an ICE restart. Replaced
    with an in-place filter.

  - s.media.ice was dereferenced unguarded in ExtractICECredential and
    PatchICECredentialAndCandidatesIntoSDP, where a sibling check for
    it already existed.

Adds a malformed fragment table test and a fuzz target that checks
Unmarshal never panics and that a parsed fragment re-parses equal after
Marshal.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
@pull pull Bot locked and limited conversation to collaborators Sep 3, 2026
@pull pull Bot added the ⤵️ pull label Sep 3, 2026
@pull
pull Bot merged commit 0cf5ba0 into erickirt:main Sep 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant