Skip to content

Commit da4bd5b

Browse files
committed
[test][hwasan] Clang-format a test
1 parent 2ee396b commit da4bd5b

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

compiler-rt/test/hwasan/TestCases/heap-buffer-overflow.c

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -36,36 +36,36 @@ int main(int argc, char **argv) {
3636
}
3737
#endif
3838

39-
// CHECK40: allocated heap chunk; size: 32 offset: 8
40-
// CHECK40: Cause: heap-buffer-overflow
41-
// CHECK40: is located 10 bytes after a 30-byte region
42-
//
43-
// CHECK80: allocated heap chunk; size: 32 offset: 16
44-
// CHECK80: Cause: heap-buffer-overflow
45-
// CHECK80: is located 50 bytes after a 30-byte region
46-
//
47-
// CHECKm30: Cause: heap-buffer-overflow
48-
// CHECKm30: is located 30 bytes before a 30-byte region
49-
//
50-
// CHECKMm30: is a large allocated heap chunk; size: 1003520 offset: -30
51-
// CHECKMm30: Cause: heap-buffer-overflow
52-
// CHECKMm30: is located 30 bytes before a 1000000-byte region
53-
//
54-
// CHECKM: is a large allocated heap chunk; size: 1003520 offset: 1000000
55-
// CHECKM: Cause: heap-buffer-overflow
56-
// CHECKM: is located 0 bytes after a 1000000-byte region
57-
//
58-
// CHECK31: tags: [[TAG:..]]/0e([[TAG]]) (ptr/mem)
59-
// CHECK31-NOT: Invalid access starting at offset
60-
// CHECK31: Cause: heap-buffer-overflow
61-
// CHECK31: is located 1 bytes after a 30-byte region
62-
// CHECK31: Memory tags around the buggy address
63-
// CHECK31: [0e]
64-
// CHECK31: Tags for short granules around the buggy address
65-
// CHECK31: {{\[}}[[TAG]]]
66-
//
67-
// CHECK20-NOT: Invalid access starting at offset
68-
// CHECK20: Cause: heap-buffer-overflow
69-
// CHECK20: is located 10 bytes after a 20-byte region [0x{{.*}}0,0x{{.*}}4)
39+
// CHECK40: allocated heap chunk; size: 32 offset: 8
40+
// CHECK40: Cause: heap-buffer-overflow
41+
// CHECK40: is located 10 bytes after a 30-byte region
42+
//
43+
// CHECK80: allocated heap chunk; size: 32 offset: 16
44+
// CHECK80: Cause: heap-buffer-overflow
45+
// CHECK80: is located 50 bytes after a 30-byte region
46+
//
47+
// CHECKm30: Cause: heap-buffer-overflow
48+
// CHECKm30: is located 30 bytes before a 30-byte region
49+
//
50+
// CHECKMm30: is a large allocated heap chunk; size: 1003520 offset: -30
51+
// CHECKMm30: Cause: heap-buffer-overflow
52+
// CHECKMm30: is located 30 bytes before a 1000000-byte region
53+
//
54+
// CHECKM: is a large allocated heap chunk; size: 1003520 offset: 1000000
55+
// CHECKM: Cause: heap-buffer-overflow
56+
// CHECKM: is located 0 bytes after a 1000000-byte region
57+
//
58+
// CHECK31: tags: [[TAG:..]]/0e([[TAG]]) (ptr/mem)
59+
// CHECK31-NOT: Invalid access starting at offset
60+
// CHECK31: Cause: heap-buffer-overflow
61+
// CHECK31: is located 1 bytes after a 30-byte region
62+
// CHECK31: Memory tags around the buggy address
63+
// CHECK31: [0e]
64+
// CHECK31: Tags for short granules around the buggy address
65+
// CHECK31: {{\[}}[[TAG]]]
66+
//
67+
// CHECK20-NOT: Invalid access starting at offset
68+
// CHECK20: Cause: heap-buffer-overflow
69+
// CHECK20: is located 10 bytes after a 20-byte region [0x{{.*}}0,0x{{.*}}4)
7070
free(x);
7171
}

0 commit comments

Comments
 (0)