[PATCH] D28376: [compiler-rt] Add check to make sure that located PC is reasonable close.
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 5 13:36:22 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL291176: [compiler-rt] Set valid PC calling __asan_report_error… (authored by vitalybuka).
Changed prior to commit:
https://reviews.llvm.org/D28376?vs=83297&id=83300#toc
Repository:
rL LLVM
https://reviews.llvm.org/D28376
Files:
compiler-rt/trunk/lib/asan/tests/asan_interface_test.cc
Index: compiler-rt/trunk/lib/asan/tests/asan_interface_test.cc
===================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_interface_test.cc
+++ compiler-rt/trunk/lib/asan/tests/asan_interface_test.cc
@@ -11,6 +11,7 @@
//
//===----------------------------------------------------------------------===//
#include "asan_test_utils.h"
+#include "sanitizer_common/sanitizer_internal_defs.h"
#include <sanitizer/allocator_interface.h>
#include <sanitizer/asan_interface.h>
@@ -399,7 +400,7 @@
TEST(AddressSanitizerInterface, SetErrorReportCallbackTest) {
__asan_set_error_report_callback(ErrorReportCallbackOneToZ);
- EXPECT_DEATH(__asan_report_error(0, 0, 0, 0, true, 1),
+ EXPECT_DEATH(__asan_report_error((void *)GET_CALLER_PC(), 0, 0, 0, true, 1),
ASAN_PCRE_DOTALL "ABCDEF.*AddressSanitizer.*WRITE.*ABCDEF");
__asan_set_error_report_callback(NULL);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28376.83300.patch
Type: text/x-patch
Size: 935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170105/382b769c/attachment.bin>
More information about the llvm-commits
mailing list