[test][msan] Fix more tests for D134669

This commit is contained in:
Vitaly Buka 2022-09-26 18:06:41 -07:00
parent 15805c030f
commit aba150ca23
3 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ int foo() { return 1; }
void Test(void *pc, const char *name) {
char module_name[1024];
void *offset;
void *offset = 0;
int ok = __sanitizer_get_module_and_offset_for_pc(
pc, module_name, sizeof(module_name), &offset);
if (!ok) {

View File

@ -1,4 +1,4 @@
// RUN: %clangxx -w -fsanitize=bool %s -o %t
// RUN: %clangxx -w -fsanitize=bool -fno-sanitize-memory-param-retval %s -o %t
// RUN: %run %t 2>&1 | FileCheck %s
// __ubsan_on_report is not defined as weak. Redefining it here isn't supported

View File

@ -1,4 +1,4 @@
// RUN: %clangxx -frtti -fsanitize=null,vptr -g %s -O3 -o %t -mllvm -enable-tail-merge=false
// RUN: %clangxx -frtti -fsanitize=null,vptr -fno-sanitize-memory-param-retval -g %s -O3 -o %t -mllvm -enable-tail-merge=false
// RUN: %env_ubsan_opts=halt_on_error=1 %run %t rT
// RUN: %env_ubsan_opts=halt_on_error=1 %run %t mT
// RUN: %env_ubsan_opts=halt_on_error=1 %run %t fT