summarylogtreecommitdiffstats
path: root/0011-bsc-991344-Rpi3-Firefox-crashes-after-a-few-seconds-.patch
diff options
context:
space:
mode:
Diffstat (limited to '0011-bsc-991344-Rpi3-Firefox-crashes-after-a-few-seconds-.patch')
-rw-r--r--0011-bsc-991344-Rpi3-Firefox-crashes-after-a-few-seconds-.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/0011-bsc-991344-Rpi3-Firefox-crashes-after-a-few-seconds-.patch b/0011-bsc-991344-Rpi3-Firefox-crashes-after-a-few-seconds-.patch
new file mode 100644
index 000000000000..b37f35727a87
--- /dev/null
+++ b/0011-bsc-991344-Rpi3-Firefox-crashes-after-a-few-seconds-.patch
@@ -0,0 +1,29 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: "msirringhaus@suse.de" <msirringhaus@suse.de>
+Date: Tue, 21 May 2019 15:49:58 +0200
+Subject: [PATCH] bsc#991344 - Rpi3: Firefox crashes after a few seconds of
+ usage
+
+bmo#1302554 - ARM/AARCH64: Firefox crashes on NULL nsIChannel** result pointer in nsIOService::NewChannelFromURIWithProxyFlagsInternal()
+---
+ netwerk/base/nsIOService.cpp | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/netwerk/base/nsIOService.cpp b/netwerk/base/nsIOService.cpp
+index 1a0c225018b7f48a648009a2d393fffc5089173f..bb5edd300131028f76b9427a20a82f27eb8e2b91 100644
+--- a/netwerk/base/nsIOService.cpp
++++ b/netwerk/base/nsIOService.cpp
+@@ -1159,7 +1159,13 @@ nsresult nsIOService::NewChannelFromURIWithProxyFlagsInternal(
+ }
+ }
+
++#if defined(__aarch64__)
++ if (result) {
++ channel.forget(result);
++ }
++#else
+ channel.forget(result);
++#endif
+ return NS_OK;
+ }
+