summaryrefslogtreecommitdiff
path: root/firefox-crashreporter-build.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2021-03-25 20:15:25 +0100
committerMartin Stransky <stransky@redhat.com>2021-03-25 20:15:25 +0100
commitecc897a6194b60cd7ff0de940631810f645bed4a (patch)
tree74fa613b67a8910ede8e7c3bf6938b3262cd3d0e /firefox-crashreporter-build.patch
parentMerge branch 'main' into f34 (diff)
parentEnable crashreporter on Fedora 34+ (diff)
downloadlibrewolf-fedora-ff-ecc897a6194b60cd7ff0de940631810f645bed4a.tar.gz
librewolf-fedora-ff-ecc897a6194b60cd7ff0de940631810f645bed4a.tar.bz2
librewolf-fedora-ff-ecc897a6194b60cd7ff0de940631810f645bed4a.zip
Merge branch 'main' into f34
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