[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:34:33 PST 2017
vitalybuka updated this revision to Diff 83297.
vitalybuka added a comment.
Just update the test
https://reviews.llvm.org/D28376
Files:
lib/asan/tests/asan_interface_test.cc
Index: lib/asan/tests/asan_interface_test.cc
===================================================================
--- lib/asan/tests/asan_interface_test.cc
+++ 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.83297.patch
Type: text/x-patch
Size: 881 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170105/77a2fa0c/attachment.bin>
More information about the llvm-commits
mailing list