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.

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

mercurial