Skip to content

Commit 4920039

Browse files
committed
C++: Test spacing.
1 parent a63e70d commit 4920039

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

cpp/ql/test/query-tests/Critical/MemoryFreed/MemoryFreed.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
| test.cpp:128:15:128:16 | v4 |
2727
| test.cpp:185:10:185:12 | cpy |
2828
| test.cpp:199:10:199:12 | cpy |
29-
| test.cpp:208:7:208:7 | a |
30-
| test.cpp:214:7:214:7 | a |
29+
| test.cpp:213:7:213:7 | a |
30+
| test.cpp:219:7:219:7 | a |
3131
| test_free.cpp:11:10:11:10 | a |
3232
| test_free.cpp:14:10:14:10 | a |
3333
| test_free.cpp:16:10:16:10 | a |

cpp/ql/test/query-tests/Critical/MemoryFreed/UseAfterFree.expected

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
edges
2-
| test.cpp:208:7:208:7 | pointer to free output argument | test.cpp:209:2:209:2 | a | provenance | |
3-
| test.cpp:214:7:214:7 | pointer to free output argument | test.cpp:215:2:215:2 | a | provenance | |
2+
| test.cpp:213:7:213:7 | pointer to free output argument | test.cpp:214:2:214:2 | a | provenance | |
3+
| test.cpp:219:7:219:7 | pointer to free output argument | test.cpp:220:2:220:2 | a | provenance | |
44
| test_free.cpp:11:10:11:10 | pointer to free output argument | test_free.cpp:12:5:12:5 | a | provenance | |
55
| test_free.cpp:11:10:11:10 | pointer to free output argument | test_free.cpp:13:5:13:6 | * ... | provenance | |
66
| test_free.cpp:42:27:42:27 | pointer to free output argument | test_free.cpp:45:5:45:5 | a | provenance | |
@@ -33,10 +33,10 @@ edges
3333
| test_free.cpp:322:12:322:12 | pointer to operator delete output argument | test_free.cpp:324:5:324:6 | * ... | provenance | |
3434
| test_free.cpp:331:12:331:12 | pointer to operator delete output argument | test_free.cpp:332:5:332:6 | * ... | provenance | |
3535
nodes
36-
| test.cpp:208:7:208:7 | pointer to free output argument | semmle.label | pointer to free output argument |
37-
| test.cpp:209:2:209:2 | a | semmle.label | a |
38-
| test.cpp:214:7:214:7 | pointer to free output argument | semmle.label | pointer to free output argument |
39-
| test.cpp:215:2:215:2 | a | semmle.label | a |
36+
| test.cpp:213:7:213:7 | pointer to free output argument | semmle.label | pointer to free output argument |
37+
| test.cpp:214:2:214:2 | a | semmle.label | a |
38+
| test.cpp:219:7:219:7 | pointer to free output argument | semmle.label | pointer to free output argument |
39+
| test.cpp:220:2:220:2 | a | semmle.label | a |
4040
| test_free.cpp:11:10:11:10 | pointer to free output argument | semmle.label | pointer to free output argument |
4141
| test_free.cpp:12:5:12:5 | a | semmle.label | a |
4242
| test_free.cpp:13:5:13:6 | * ... | semmle.label | * ... |
@@ -88,8 +88,8 @@ nodes
8888
| test_free.cpp:332:5:332:6 | * ... | semmle.label | * ... |
8989
subpaths
9090
#select
91-
| test.cpp:209:2:209:2 | a | test.cpp:208:7:208:7 | pointer to free output argument | test.cpp:209:2:209:2 | a | Memory may have been previously freed by $@. | test.cpp:208:2:208:5 | call to free | call to free |
92-
| test.cpp:215:2:215:2 | a | test.cpp:214:7:214:7 | pointer to free output argument | test.cpp:215:2:215:2 | a | Memory may have been previously freed by $@. | test.cpp:214:2:214:5 | call to free | call to free |
91+
| test.cpp:214:2:214:2 | a | test.cpp:213:7:213:7 | pointer to free output argument | test.cpp:214:2:214:2 | a | Memory may have been previously freed by $@. | test.cpp:213:2:213:5 | call to free | call to free |
92+
| test.cpp:220:2:220:2 | a | test.cpp:219:7:219:7 | pointer to free output argument | test.cpp:220:2:220:2 | a | Memory may have been previously freed by $@. | test.cpp:219:2:219:5 | call to free | call to free |
9393
| test_free.cpp:12:5:12:5 | a | test_free.cpp:11:10:11:10 | pointer to free output argument | test_free.cpp:12:5:12:5 | a | Memory may have been previously freed by $@. | test_free.cpp:11:5:11:8 | call to free | call to free |
9494
| test_free.cpp:13:5:13:6 | * ... | test_free.cpp:11:10:11:10 | pointer to free output argument | test_free.cpp:13:5:13:6 | * ... | Memory may have been previously freed by $@. | test_free.cpp:11:5:11:8 | call to free | call to free |
9595
| test_free.cpp:45:5:45:5 | a | test_free.cpp:42:27:42:27 | pointer to free output argument | test_free.cpp:45:5:45:5 | a | Memory may have been previously freed by $@. | test_free.cpp:42:22:42:25 | call to free | call to free |

cpp/ql/test/query-tests/Critical/MemoryFreed/test.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ void test_strndupa_dealloc() {
201201

202202
// ---
203203

204+
205+
206+
207+
208+
204209
void test_reassignment() {
205210
char *a = (char *)malloc(128);
206211
char *b = (char *)malloc(128);

0 commit comments

Comments
 (0)