[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser] 32/43: Bug 1768559: Do something safe in this weird corner case. r=mjf, a=RyanVM
This is an automated email from the git hooks/post-receive script.
pierov pushed a commit to branch tor-browser-91.10.0esr-11.0-1
in repository tor-browser.
commit c74dc4ab1355641bc7c62e173967cc3d6f702dff
Author: Byron Campen <docfaraday@xxxxxxxxx>
AuthorDate: Tue May 17 00:01:26 2022 +0000
Bug 1768559: Do something safe in this weird corner case. r=mjf, a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D145979
---
dom/media/webrtc/jsep/JsepSessionImpl.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dom/media/webrtc/jsep/JsepSessionImpl.cpp b/dom/media/webrtc/jsep/JsepSessionImpl.cpp
index 426cc2e988e16..badf80cc3d3ff 100644
--- a/dom/media/webrtc/jsep/JsepSessionImpl.cpp
+++ b/dom/media/webrtc/jsep/JsepSessionImpl.cpp
@@ -2461,6 +2461,13 @@ bool JsepSessionImpl::CheckNegotiationNeeded() const {
}
size_t level = transceiver->GetLevel();
+ if (NS_WARN_IF(mCurrentLocalDescription->GetMediaSectionCount() <= level) ||
+ NS_WARN_IF(mCurrentRemoteDescription->GetMediaSectionCount() <=
+ level)) {
+ MOZ_ASSERT(false);
+ continue;
+ }
+
const SdpMediaSection& local =
mCurrentLocalDescription->GetMediaSection(level);
const SdpMediaSection& remote =
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits