toolkit/crashreporter/breakpad-patches/18-bug945498-expose-handle-signal.patch

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 commit 443e11243cf3c88087b70602822d9e228f60d40a
michael@0 2 Author: Jed Davis <jld@mozilla.com>
michael@0 3 Date: Wed Jan 29 12:06:33 2014 -0800
michael@0 4
michael@0 5 Bug 945498: Use breakpad to report seccomp violations as crashes.
michael@0 6
michael@0 7 diff --git a/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.h b/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.h
michael@0 8 index 7155419..c0039bc 100644
michael@0 9 --- a/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.h
michael@0 10 +++ b/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.h
michael@0 11 @@ -219,6 +219,9 @@ class ExceptionHandler {
michael@0 12
michael@0 13 // Force signal handling for the specified signal.
michael@0 14 bool SimulateSignalDelivery(int sig);
michael@0 15 +
michael@0 16 + // Report a crash signal from an SA_SIGINFO signal handler.
michael@0 17 + bool HandleSignal(int sig, siginfo_t* info, void* uc);
michael@0 18 private:
michael@0 19 // Save the old signal handlers and install new ones.
michael@0 20 static bool InstallHandlersLocked();
michael@0 21 @@ -231,7 +234,6 @@ class ExceptionHandler {
michael@0 22 void WaitForContinueSignal();
michael@0 23
michael@0 24 static void SignalHandler(int sig, siginfo_t* info, void* uc);
michael@0 25 - bool HandleSignal(int sig, siginfo_t* info, void* uc);
michael@0 26 static int ThreadEntry(void* arg);
michael@0 27 bool DoDump(pid_t crashing_process, const void* context,
michael@0 28 size_t context_size);

mercurial