Open Bug 1151122 Opened 10 years ago Updated 3 years ago

Missing mid's are not detected by SDP parser

Categories

(Core :: WebRTC: Signaling, defect, P4)

defect

Tracking

()

Tracking Status
firefox40 --- affected

People

(Reporter: drno, Unassigned)

Details

Attachments

(1 file)

If the group bundle attribute contains an ID, which does not appear in any mid attribute our parser does not complain. It results in different views on what to bundle and ultimately in ICE transport errors, instead of exiting early.
Does this look reasonable? Should I a test for this?
Attachment #8588223 - Flags: feedback?(docfaraday)
Comment on attachment 8588223 [details] [diff] [review] bug_1151122_check_mids.patch Review of attachment 8588223 [details] [diff] [review]: ----------------------------------------------------------------- Just nits. I suppose a test couldn't hurt (writing one in jsep_session_unittest should be easy if you just stomp the mid attributes using Replace). ::: media/webrtc/signaling/src/jsep/JsepSessionImpl.cpp @@ +1911,5 @@ > return NS_ERROR_INVALID_ARG; > } > > std::set<std::string> trackIds; > + std::set<std::string> mIds; mIds looks like a member variable, mids should be fine. @@ +1993,5 @@ > + if (groups && !groups->tags.empty() && mIds.size()) { > + for (auto id=groups->tags.begin(); id!=groups->tags.end(); id++) { > + if (!mIds.count(*id)) { > + JSEP_SET_ERROR("group bundle id: " << *id > + << " is missing in m-section mId's"); Maybe phrase as "Unknown mid " << *id << " in group attribute."
Attachment #8588223 - Flags: feedback?(docfaraday) → feedback+
backlog: --- → webRTC+
Rank: 35
Priority: -- → P3
Mass change P3->P4 to align with new Mozilla triage process.
Priority: P3 → P4
I don't have the capacity any more to work on this any time soon.
Assignee: drno → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: