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)
Core
WebRTC: Signaling
Tracking
()
NEW
| Tracking | Status | |
|---|---|---|
| firefox40 | --- | affected |
| backlog | webrtc/webaudio+ |
People
(Reporter: drno, Unassigned)
Details
Attachments
(1 file)
|
2.43 KB,
patch
|
bwc
:
feedback+
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Comment 1•10 years ago
|
||
Does this look reasonable?
Should I a test for this?
Attachment #8588223 -
Flags: feedback?(docfaraday)
Comment 2•10 years ago
|
||
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+
Updated•10 years ago
|
backlog: --- → webRTC+
Rank: 35
Priority: -- → P3
Comment 3•8 years ago
|
||
Mass change P3->P4 to align with new Mozilla triage process.
Priority: P3 → P4
| Reporter | ||
Comment 4•7 years ago
|
||
I don't have the capacity any more to work on this any time soon.
Assignee: drno → nobody
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•