summaryrefslogtreecommitdiff
path: root/firefox-crashreporter-build.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2021-03-25 20:14:55 +0100
committerMartin Stransky <stransky@redhat.com>2021-03-25 20:14:55 +0100
commit126134329eeae45959cc414fcdbc569aee04506b (patch)
tree74fa613b67a8910ede8e7c3bf6938b3262cd3d0e /firefox-crashreporter-build.patch
parentxpcshell-test fixes (diff)
downloadlibrewolf-fedora-ff-126134329eeae45959cc414fcdbc569aee04506b.tar.gz
librewolf-fedora-ff-126134329eeae45959cc414fcdbc569aee04506b.tar.bz2
librewolf-fedora-ff-126134329eeae45959cc414fcdbc569aee04506b.zip
Enable crashreporter on Fedora 34+
Diffstat (limited to 'firefox-crashreporter-build.patch')
-rw-r--r--firefox-crashreporter-build.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/firefox-crashreporter-build.patch b/firefox-crashreporter-build.patch
new file mode 100644
index 0000000..0c1bc37
--- /dev/null
+++ b/firefox-crashreporter-build.patch
@@ -0,0 +1,12 @@
+diff -up firefox-87.0/toolkit/crashreporter/breakpad-client/linux/handler/exception_handler.cc.old firefox-87.0/toolkit/crashreporter/breakpad-client/linux/handler/exception_handler.cc
+--- firefox-87.0/toolkit/crashreporter/breakpad-client/linux/handler/exception_handler.cc.old 2021-03-25 19:07:12.920421009 +0100
++++ firefox-87.0/toolkit/crashreporter/breakpad-client/linux/handler/exception_handler.cc 2021-03-25 19:06:45.496596019 +0100
+@@ -149,7 +149,7 @@ void InstallAlternateStackLocked() {
+ // SIGSTKSZ may be too small to prevent the signal handlers from overrunning
+ // the alternative stack. Ensure that the size of the alternative stack is
+ // large enough.
+- static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
++ static const unsigned kSigStackSize = (16384 > SIGSTKSZ) ? 16384 : SIGSTKSZ;
+
+ // Only set an alternative stack if there isn't already one, or if the current
+ // one is too small.
bgstack15