Title: [289294] branches/safari-613-branch/Source/ThirdParty/libwebrtc
- Revision
- 289294
- Author
- [email protected]
- Date
- 2022-02-07 18:54:38 -0800 (Mon, 07 Feb 2022)
Log Message
Cherry-pick r288461. rdar://problem/87969456
Reject large number of WebRTC audio channels
https://bugs.webkit.org/show_bug.cgi?id=235511
Reviewed by Eric Carlson.
Cherry-picking WebRTC upstream fix for compliance.
* Source/webrtc/pc/webrtc_sdp.cc:
* Source/webrtc/pc/webrtc_sdp_unittest.cc:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288461 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-613-branch/Source/ThirdParty/libwebrtc/ChangeLog (289293 => 289294)
--- branches/safari-613-branch/Source/ThirdParty/libwebrtc/ChangeLog 2022-02-08 02:54:35 UTC (rev 289293)
+++ branches/safari-613-branch/Source/ThirdParty/libwebrtc/ChangeLog 2022-02-08 02:54:38 UTC (rev 289294)
@@ -1,3 +1,32 @@
+2022-02-07 Russell Epstein <[email protected]>
+
+ Cherry-pick r288461. rdar://problem/87969456
+
+ Reject large number of WebRTC audio channels
+ https://bugs.webkit.org/show_bug.cgi?id=235511
+
+ Reviewed by Eric Carlson.
+
+ Cherry-picking WebRTC upstream fix for compliance.
+
+ * Source/webrtc/pc/webrtc_sdp.cc:
+ * Source/webrtc/pc/webrtc_sdp_unittest.cc:
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288461 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2022-01-24 Youenn Fablet <[email protected]>
+
+ Reject large number of WebRTC audio channels
+ https://bugs.webkit.org/show_bug.cgi?id=235511
+
+ Reviewed by Eric Carlson.
+
+ Cherry-picking WebRTC upstream fix for compliance.
+
+ * Source/webrtc/pc/webrtc_sdp.cc:
+ * Source/webrtc/pc/webrtc_sdp_unittest.cc:
+
2022-01-07 Alex Christensen <[email protected]>
Unreviewed, reverting r287698.
Modified: branches/safari-613-branch/Source/ThirdParty/libwebrtc/Source/webrtc/pc/webrtc_sdp.cc (289293 => 289294)
--- branches/safari-613-branch/Source/ThirdParty/libwebrtc/Source/webrtc/pc/webrtc_sdp.cc 2022-02-08 02:54:35 UTC (rev 289293)
+++ branches/safari-613-branch/Source/ThirdParty/libwebrtc/Source/webrtc/pc/webrtc_sdp.cc 2022-02-08 02:54:38 UTC (rev 289294)
@@ -256,6 +256,9 @@
// types.
const int kWildcardPayloadType = -1;
+// Maximum number of channels allowed.
+static const size_t kMaxNumberOfChannels = 24;
+
struct SsrcInfo {
uint32_t ssrc_id;
std::string cname;
@@ -3627,6 +3630,10 @@
return false;
}
}
+ if (channels > kMaxNumberOfChannels) {
+ return ParseFailed(line, "At most 24 channels are supported.", error);
+ }
+
AudioContentDescription* audio_desc = media_desc->as_audio();
UpdateCodec(payload_type, encoding_name, clock_rate, 0, channels,
audio_desc);
Modified: branches/safari-613-branch/Source/ThirdParty/libwebrtc/Source/webrtc/pc/webrtc_sdp_unittest.cc (289293 => 289294)
--- branches/safari-613-branch/Source/ThirdParty/libwebrtc/Source/webrtc/pc/webrtc_sdp_unittest.cc 2022-02-08 02:54:35 UTC (rev 289293)
+++ branches/safari-613-branch/Source/ThirdParty/libwebrtc/Source/webrtc/pc/webrtc_sdp_unittest.cc 2022-02-08 02:54:38 UTC (rev 289294)
@@ -4694,3 +4694,15 @@
Replace("a=mid:", "a=mid:[]", &sdp);
ExpectParseFailure(std::string(sdp), "a=mid:[]");
}
+
+TEST_F(WebRtcSdpTest, MaxChannels) {
+ std::string sdp =
+ "v=0\r\n"
+ "o=- 11 22 IN IP4 127.0.0.1\r\n"
+ "s=-\r\n"
+ "t=0 0\r\n"
+ "m=audio 49232 RTP/AVP 108\r\n"
+ "a=rtpmap:108 ISAC/16000/512\r\n";
+
+ ExpectParseFailure(sdp, "a=rtpmap:108 ISAC/16000/512");
+}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes