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@gmail.com 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 =