Skip to content

Commit 2e01b43

Browse files
committed
[asan] Attempt to fix tests broken by llvm#94307.
1 parent d125e71 commit 2e01b43

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler-rt/test/asan/TestCases/strcpy-overlap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ __attribute__((noinline)) void bad_function() {
3636
char buffer[] = "hello";
3737
// CHECK: strcpy-param-overlap: memory ranges
3838
// CHECK: [{{0x.*,[ ]*0x.*}}) and [{{0x.*,[ ]*0x.*}}) overlap
39-
// CHECK: {{#[0-9]+ 0x.* in .*strcpy .*.cpp}}
39+
// CHECK: {{#[0-9]+ 0x.* in .*strcpy.* .*.cpp}}
4040
// CHECK: {{#[0-9]+ 0x.* in bad_function.*strcpy-overlap.cpp:}}[[@LINE+2]]
4141
// CHECK: {{#[0-9]+ 0x.* in main .*strcpy-overlap.cpp:}}[[@LINE+5]]
4242
strcpy(buffer, buffer + 1); // BOOM

compiler-rt/test/asan/TestCases/strdup_oob_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ int main(int argc, char **argv) {
2323
// CHECK: AddressSanitizer: heap-buffer-overflow
2424
// CHECK: #0 {{.*}}main {{.*}}strdup_oob_test.cpp:[[@LINE-2]]
2525
// CHECK-LABEL: allocated by thread T{{.*}} here:
26-
// CHECK: #{{[0-9]}}+ {{.*}}strdup
26+
// CHECK: #{{[0-9]+}} {{.*}}strdup
2727
// CHECK: #{{.*}}main {{.*}}strdup_oob_test.cpp:[[@LINE-6]]
2828
// CHECK-LABEL: SUMMARY
2929
// CHECK: strdup_oob_test.cpp:[[@LINE-7]]

compiler-rt/test/asan/TestCases/use-after-free-right.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ int main() {
1818
// CHECK: {{ #[0-9]+ 0x.* in main .*use-after-free-right.cpp:}}[[@LINE-4]]
1919
// CHECK: {{0x.* is located 0 bytes inside of 1-byte region .0x.*,0x.*}}
2020
// CHECK: {{freed by thread T0 here:}}
21-
// CHECK: {{ #[0-9]+ 0x.* in .*free .*.cpp}}
21+
// CHECK: {{ #[0-9]+ 0x.* in .*free.* .*.cpp}}
2222
// CHECK: {{ #[0-9]+ 0x.* in main .*use-after-free-right.cpp:}}[[@LINE-9]]
2323

2424
// CHECK: {{previously allocated by thread T0 here:}}

0 commit comments

Comments
 (0)