Files
livekit/pkg
Arunveer Sidhu 84aae1d100 fix: validate data track handle range in HandleUnpublishDataTrackRequest (#5163)
* fix: validate data track handle range in HandleUnpublishDataTrackRequest

HandlePublishDataTrackRequest rejects pub_handle 0 and values above 65535 with INVALID_HANDLE, but HandleUnpublishDataTrackRequest casts the wire uint32 to uint16 without the same check. A client sending pub_handle 65537 wraps to handle 1 and unpublishes its own valid data track instead of receiving an error. This adds the same range validation to the unpublish handler before the uint16 conversion, with the same INVALID_HANDLE reason and message as publish.
2026-11-09 11:37:30 -08:00
..
2025-11-28 21:51:53 +05:30