Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions compiler-rt/test/hwasan/TestCases/Linux/fixed-shadow.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
// Default compiler instrumentation works with any shadow base (dynamic or fixed).
// RUN: %clang_hwasan %s -o %t
// RUN: %run %t
// RUN: env HWASAN_OPTIONS=fixed_shadow_base=263878495698944 %run %t 2>%t.out || (cat %t.out | FileCheck %s)
// RUN: env HWASAN_OPTIONS=fixed_shadow_base=263878495698944 %run %t
// RUN: env HWASAN_OPTIONS=fixed_shadow_base=4398046511104 %run %t
//
// If -hwasan-mapping-offset is set, then the fixed_shadow_base needs to match.
// RUN: %clang_hwasan %s -mllvm -hwasan-mapping-offset=263878495698944 -o %t
// RUN: env HWASAN_OPTIONS=fixed_shadow_base=263878495698944 %run %t 2>%t.out || (cat %t.out | FileCheck %s)
// RUN: env HWASAN_OPTIONS=fixed_shadow_base=263878495698944 %run %t
// RUN: env HWASAN_OPTIONS=fixed_shadow_base=4398046511104 not %run %t

// RUN: %clang_hwasan %s -mllvm -hwasan-mapping-offset=4398046511104 -o %t
Expand All @@ -26,8 +26,6 @@
//
// UNSUPPORTED: android

// CHECK: FATAL: HWAddressSanitizer: Shadow range {{.*}} is not available

#include <assert.h>
#include <sanitizer/allocator_interface.h>
#include <sanitizer/hwasan_interface.h>
Expand Down
Loading