File tree 4 files changed +4
-4
lines changed
compiler-rt/test/hwasan/TestCases 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ int main() {
12
12
// CHECK: ALLOC {{[0x]+}}[[ADDR:.*]]
13
13
free (p - 8 );
14
14
// CHECK: ERROR: HWAddressSanitizer: invalid-free on address {{.*}} at pc {{[0x]+}}[[PC:.*]] on thread T{{[0-9]+}}
15
- // CHECK: #0 {{[0x]+}}{{.*}}[[PC]] in free
15
+ // CHECK: #0 {{[0x]+}}{{.*}}[[PC]] in {{.*}} free
16
16
// CHECK: #1 {{.*}} in main {{.*}}wild-free-close.c:[[@LINE-3]]
17
17
// CHECK: is located 8 bytes to the left of 1-byte region [{{[0x]+}}{{.*}}[[ADDR]]
18
18
// CHECK-NOT: Segmentation fault
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ int main() {
6
6
char * p = (char * )malloc (1 );
7
7
realloc (p + 0x10000000000 , 2 );
8
8
// CHECK: ERROR: HWAddressSanitizer: invalid-free on address {{.*}} at pc {{[0x]+}}[[PC:.*]] on thread T{{[0-9]+}}
9
- // CHECK: #0 {{[0x]+}}{{.*}}[[PC]] in realloc
9
+ // CHECK: #0 {{[0x]+}}{{.*}}[[PC]] in {{.*}} realloc
10
10
// CHECK: #1 {{.*}} in main {{.*}}wild-free-realloc.c:[[@LINE-3]]
11
11
// CHECK-NOT: Segmentation fault
12
12
// CHECK-NOT: SIGSEGV
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ int main() {
8
8
char * p = (char * )malloc (1 );
9
9
free (__hwasan_shadow_memory_dynamic_address );
10
10
// CHECK: ERROR: HWAddressSanitizer: invalid-free on address {{[0x]+}}[[PTR:.*]] at pc {{[0x]+}}[[PC:.*]] on thread T{{[0-9]+}}
11
- // CHECK: #0 {{[0x]+}}{{.*}}[[PC]] in free
11
+ // CHECK: #0 {{[0x]+}}{{.*}}[[PC]] in {{.*}} free
12
12
// CHECK: #1 {{.*}} in main {{.*}}wild-free-shadow.c:[[@LINE-3]]
13
13
// CHECK: {{[0x]+}}{{.*}}[[PTR]] is HWAsan shadow memory.
14
14
// CHECK-NOT: Segmentation fault
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ int main() {
6
6
char * p = (char * )malloc (1 );
7
7
free (p + 0x10000000000 );
8
8
// CHECK: ERROR: HWAddressSanitizer: invalid-free on address {{.*}} at pc {{[0x]+}}[[PC:.*]] on thread T{{[0-9]+}}
9
- // CHECK: #0 {{[0x]+}}{{.*}}[[PC]] in free
9
+ // CHECK: #0 {{[0x]+}}{{.*}}[[PC]] in {{.*}} free
10
10
// CHECK: #1 {{.*}} in main {{.*}}wild-free.c:[[@LINE-3]]
11
11
// CHECK-NOT: Segmentation fault
12
12
// CHECK-NOT: SIGSEGV
You can’t perform that action at this time.
0 commit comments