mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-27 07:52:55 +02:00
qt5-webengine: apply upstream backported nullptr patch
Refs qutebrowser/qutebrowser#5721
This commit is contained in:
parent
7244cc1d91
commit
3b0a1ffa4a
2 changed files with 40 additions and 1 deletions
|
@ -0,0 +1,39 @@
|
||||||
|
From 4e828b3bd2d410151dc2574d084bed631dac42ca Mon Sep 17 00:00:00 2001
|
||||||
|
From: Daniel McArdle <dmcardle@chromium.org>
|
||||||
|
Date: Thu, 16 Apr 2020 20:18:47 +0000
|
||||||
|
Subject: [PATCH] [Backport] Fix for bug 1071327
|
||||||
|
|
||||||
|
Manual backport of patch originally reviewed on
|
||||||
|
https://chromium-review.googlesource.com/c/chromium/src/+/2153325:
|
||||||
|
Avoid nullptr dereference in RTCPeerConnectionHandler
|
||||||
|
|
||||||
|
Bug: 1071327
|
||||||
|
Fixes: QTBUG-86752
|
||||||
|
Change-Id: Icf4189905dc5c95854b5af4b3e5e25e0607dd39e
|
||||||
|
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
|
||||||
|
---
|
||||||
|
|
||||||
|
diff --git a/chromium/third_party/blink/renderer/modules/peerconnection/rtc_peer_connection_handler.cc b/chromium/third_party/blink/renderer/modules/peerconnection/rtc_peer_connection_handler.cc
|
||||||
|
index 5a68327..371f25c 100644
|
||||||
|
--- 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::OnModifySctpTransport(
|
||||||
|
blink::WebRTCSctpTransportSnapshot state) {
|
||||||
|
- client_->DidModifySctpTransport(state);
|
||||||
|
+ if (client_)
|
||||||
|
+ client_->DidModifySctpTransport(state);
|
||||||
|
}
|
||||||
|
|
||||||
|
void RTCPeerConnectionHandler::OnModifyTransceivers(
|
||||||
|
@@ -2446,7 +2447,8 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
void RTCPeerConnectionHandler::OnInterestingUsage(int usage_pattern) {
|
||||||
|
- client_->DidNoteInterestingUsage(usage_pattern);
|
||||||
|
+ if (client_)
|
||||||
|
+ client_->DidNoteInterestingUsage(usage_pattern);
|
||||||
|
}
|
||||||
|
|
||||||
|
webrtc::SessionDescriptionInterface*
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'qt5-webengine'
|
# Template file for 'qt5-webengine'
|
||||||
pkgname=qt5-webengine
|
pkgname=qt5-webengine
|
||||||
version=5.15.1
|
version=5.15.1
|
||||||
revision=1
|
revision=2
|
||||||
archs="x86_64* i686* armv[67]* ppc64* aarch64*"
|
archs="x86_64* i686* armv[67]* ppc64* aarch64*"
|
||||||
wrksrc="qtwebengine-everywhere-src-${version}"
|
wrksrc="qtwebengine-everywhere-src-${version}"
|
||||||
build_style=qmake
|
build_style=qmake
|
||||||
|
|
Loading…
Add table
Reference in a new issue