You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler-rt/test/asan/TestCases/wcscat.cpp
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,11 @@ int main() {
16
16
wchar_t badDst[9];
17
17
wcscpy(badDst, start);
18
18
fprintf(stderr, "Good so far.\n");
19
-
// CHECK: Good so far.
19
+
// CHECK-DAG: Good so far.
20
20
fflush(stderr);
21
21
wcscat(badDst, append); // Boom!
22
-
// CHECK: ERROR: AddressSanitizer: stack-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] at pc {{0x[0-9a-f]+}} bp {{0x[0-9a-f]+}} sp {{0x[0-9a-f]+}}
23
-
// CHECK: WRITE of size {{[0-9]+}} at [[ADDR]] thread T0
24
-
// CHECK: #0 {{0x[0-9a-f]+}} in wcscat
22
+
// CHECK-DAG: ERROR: AddressSanitizer: stack-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] at pc {{0x[0-9a-f]+}} bp {{0x[0-9a-f]+}} sp {{0x[0-9a-f]+}}
23
+
// CHECK-DAG: WRITE of size {{[0-9]+}} at [[ADDR]] thread T0
Copy file name to clipboardExpand all lines: compiler-rt/test/asan/TestCases/wcscpy.cpp
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,11 @@ int main() {
13
13
14
14
wchar_t badDst[7];
15
15
fprintf(stderr, "Good so far.\n");
16
-
// CHECK: Good so far.
16
+
// CHECK-DAG: Good so far.
17
17
fflush(stderr);
18
18
wcscpy(badDst, src); // Boom!
19
-
// CHECK: ERROR: AddressSanitizer: stack-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] at pc {{0x[0-9a-f]+}} bp {{0x[0-9a-f]+}} sp {{0x[0-9a-f]+}}
20
-
// CHECK: WRITE of size {{[0-9]+}} at [[ADDR]] thread T0
21
-
// CHECK: #0 {{0x[0-9a-f]+}} in wcscpy
19
+
// CHECK-DAG: ERROR: AddressSanitizer: stack-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] at pc {{0x[0-9a-f]+}} bp {{0x[0-9a-f]+}} sp {{0x[0-9a-f]+}}
20
+
// CHECK-DAG: WRITE of size {{[0-9]+}} at [[ADDR]] thread T0
Copy file name to clipboardExpand all lines: compiler-rt/test/asan/TestCases/wcsncat.cpp
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -17,11 +17,11 @@ int main() {
17
17
wcscpy(badDst, start);
18
18
wcsncat(badDst, append, 1);
19
19
fprintf(stderr, "Good so far.\n");
20
-
// CHECK: Good so far.
20
+
// CHECK-DAG: Good so far.
21
21
fflush(stderr);
22
22
wcsncat(badDst, append, 3); // Boom!
23
-
// CHECK: ERROR: AddressSanitizer: stack-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] at pc {{0x[0-9a-f]+}} bp {{0x[0-9a-f]+}} sp {{0x[0-9a-f]+}}
24
-
// CHECK: WRITE of size {{[0-9]+}} at [[ADDR]] thread T0
25
-
// CHECK: #0 {{0x[0-9a-f]+}} in wcsncat
23
+
// CHECK-DAG: ERROR: AddressSanitizer: stack-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] at pc {{0x[0-9a-f]+}} bp {{0x[0-9a-f]+}} sp {{0x[0-9a-f]+}}
24
+
// CHECK-DAG: WRITE of size {{[0-9]+}} at [[ADDR]] thread T0
Copy file name to clipboardExpand all lines: compiler-rt/test/asan/TestCases/wcsncpy.cpp
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -14,12 +14,11 @@ int main() {
14
14
wchar_t badDst[7];
15
15
wcsncpy(badDst, src, 7); // This should still work.
16
16
fprintf(stderr, "Good so far.\n");
17
-
// CHECK: Good so far.
17
+
// CHECK-DAG: Good so far.
18
18
fflush(stderr);
19
-
20
19
wcsncpy(badDst, src, 15); // Boom!
21
-
// CHECK: ERROR: AddressSanitizer: stack-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] at pc {{0x[0-9a-f]+}} bp {{0x[0-9a-f]+}} sp {{0x[0-9a-f]+}}
22
-
// CHECK: WRITE of size {{[0-9]+}} at [[ADDR]] thread T0
23
-
// CHECK: #0 {{0x[0-9a-f]+}} in wcsncpy
20
+
// CHECK-DAG: ERROR: AddressSanitizer: stack-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] at pc {{0x[0-9a-f]+}} bp {{0x[0-9a-f]+}} sp {{0x[0-9a-f]+}}
21
+
// CHECK-DAG: WRITE of size {{[0-9]+}} at [[ADDR]] thread T0
0 commit comments