[neon/qt/qtwebengine/Neon/testing] debian: Backport upstream fix for nullptr dereference in RTCPeerConnectionHandler.

Dmitry Shachnev null at kde.org
Wed May 19 11:53:42 BST 2021


Git commit 62f2e848019c1fcd686aa9493b2e7fa70faa0558 by Dmitry Shachnev.
Committed on 02/10/2020 at 11:54.
Pushed by sitter into branch 'Neon/testing'.

Backport upstream fix for nullptr dereference in RTCPeerConnectionHandler.

See https://bugreports.qt.io/browse/QTBUG-86752.

M  +3    -0    debian/changelog
M  +1    -0    debian/patches/series
A  +26   -0    debian/patches/webrtc-crash.patch

https://invent.kde.org/neon/qt/qtwebengine/commit/62f2e848019c1fcd686aa9493b2e7fa70faa0558

diff --git a/debian/changelog b/debian/changelog
index ce67969..346f766 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,8 @@
 qtwebengine-opensource-src (5.15.1+dfsg-4) UNRELEASED; urgency=medium
 
+  [ Dmitry Shachnev ]
+  * Backport upstream fix for nullptr dereference in RTCPeerConnectionHandler
+    (see QTBUG-86752).
 
  -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Fri, 02 Oct 2020 14:45:41 +0300
 
diff --git a/debian/patches/series b/debian/patches/series
index 02ebedf..a59cddf 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,3 +9,4 @@ mipsel-no-dav1d.patch
 mipsel-link-atomic.patch
 sandbox-time64-syscalls.patch
 mipsel-code-range-size.patch
+webrtc-crash.patch
diff --git a/debian/patches/webrtc-crash.patch b/debian/patches/webrtc-crash.patch
new file mode 100644
index 0000000..989eba9
--- /dev/null
+++ b/debian/patches/webrtc-crash.patch
@@ -0,0 +1,26 @@
+Description: avoid nullptr dereference in RTCPeerConnectionHandler
+Origin: upstream, https://code.qt.io/cgit/qt/qtwebengine-chromium.git/commit/?id=4e828b3bd2d41015
+Last-Update: 2020-10-02
+
+--- a/src/3rdparty/chromium/third_party/blink/renderer/modules/peerconnection/rtc_peer_connection_handler.cc
++++ b/src/3rdparty/chromium/third_party/blink/renderer/modules/peerconnection/rtc_peer_connection_handler.cc
+@@ -2319,7 +2319,8 @@ void RTCPeerConnectionHandler::OnRemoveR
+ 
+ void RTCPeerConnectionHandler::OnModifySctpTransport(
+     blink::WebRTCSctpTransportSnapshot state) {
+-  client_->DidModifySctpTransport(state);
++  if (client_)
++    client_->DidModifySctpTransport(state);
+ }
+ 
+ void RTCPeerConnectionHandler::OnModifyTransceivers(
+@@ -2446,7 +2447,8 @@ void RTCPeerConnectionHandler::OnIceCand
+ }
+ 
+ void RTCPeerConnectionHandler::OnInterestingUsage(int usage_pattern) {
+-  client_->DidNoteInterestingUsage(usage_pattern);
++  if (client_)
++    client_->DidNoteInterestingUsage(usage_pattern);
+ }
+ 
+ webrtc::SessionDescriptionInterface*



More information about the Neon-commits mailing list