[compiler-rt] 0c3b298 - [GWP-ASan] Change crash handler constant.

Mitch Phillips via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 5 16:47:42 PST 2020


Author: Mitch Phillips
Date: 2020-02-05T16:46:51-08:00
New Revision: 0c3b2986ac6b71abc649811c3ec9cb0bf073c7d8

URL: https://github.com/llvm/llvm-project/commit/0c3b2986ac6b71abc649811c3ec9cb0bf073c7d8
DIFF: https://github.com/llvm/llvm-project/commit/0c3b2986ac6b71abc649811c3ec9cb0bf073c7d8.diff

LOG: [GWP-ASan] Change crash handler constant.

Constant is too large to fit into uintptr_t on 32-bit.

Added: 
    

Modified: 
    compiler-rt/lib/gwp_asan/tests/crash_handler_api.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/gwp_asan/tests/crash_handler_api.cpp b/compiler-rt/lib/gwp_asan/tests/crash_handler_api.cpp
index aa7e2a49c815..3df7ff5d460e 100644
--- a/compiler-rt/lib/gwp_asan/tests/crash_handler_api.cpp
+++ b/compiler-rt/lib/gwp_asan/tests/crash_handler_api.cpp
@@ -105,7 +105,7 @@ class CrashHandlerAPITest : public ::testing::Test {
 };
 
 uintptr_t CrashHandlerAPITest::BacktraceConstants[kNumBacktraceConstants] = {
-    0xdeadbeef, 0xdeadc0de, 0xbadc0ffee, 0xcafef00d};
+    0xdeadbeef, 0xdeadc0de, 0xbadc0ffe, 0xcafef00d};
 
 TEST_F(CrashHandlerAPITest, PointerNotMine) {
   uintptr_t UnknownPtr = reinterpret_cast<uintptr_t>(&State);


        


More information about the llvm-commits mailing list