tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

0001-Turn-on-hardened-mode.patch (896B)


      1 From 15f51edf989cc47588c3d8635a62c255cdeb0072 Mon Sep 17 00:00:00 2001
      2 From: Daniel Cheng <dcheng@chromium.org>
      3 Date: Wed, 6 Oct 2021 03:23:23 -0700
      4 Subject: [PATCH] Turn on hardened mode
      5 
      6 Enable various hardening checks in absl which would otherwise be UB.
      7 ---
      8 third_party/abseil-cpp/absl/base/options.h | 2 +-
      9 1 file changed, 1 insertion(+), 1 deletion(-)
     10 
     11 diff --git a/third_party/abseil-cpp/absl/base/options.h b/third_party/abseil-cpp/absl/base/options.h
     12 index 71bafb39f2124..212891c5067f1 100644
     13 --- a/third_party/abseil-cpp/absl/base/options.h
     14 +++ b/third_party/abseil-cpp/absl/base/options.h
     15 @@ -179,6 +179,6 @@
     16 // checks enabled by this option may abort the program in a different way and
     17 // log additional information when `NDEBUG` is not defined.
     18 
     19 -#define ABSL_OPTION_HARDENED 0
     20 +#define ABSL_OPTION_HARDENED 1
     21 
     22 #endif  // ABSL_BASE_OPTIONS_H_
     23 --
     24 2.49.0.rc0.332.g42c0ae87b1-goog