Skip to content

Commit 82b9f1b

Browse files
committed
C++: Accept test changes.
1 parent 0543ed1 commit 82b9f1b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ edges
99
| test_free.cpp:83:12:83:12 | pointer to operator delete output argument | test_free.cpp:85:12:85:12 | a |
1010
| test_free.cpp:101:10:101:10 | pointer to free output argument | test_free.cpp:103:10:103:10 | a |
1111
| test_free.cpp:128:10:128:11 | pointer to free output argument | test_free.cpp:129:10:129:11 | * ... |
12-
| test_free.cpp:131:10:131:13 | pointer to free output argument | test_free.cpp:132:10:132:13 | access to array |
1312
| test_free.cpp:152:27:152:27 | pointer to free output argument | test_free.cpp:154:10:154:10 | a |
1413
| test_free.cpp:207:10:207:10 | pointer to free output argument | test_free.cpp:209:10:209:10 | a |
1514
nodes
@@ -33,8 +32,6 @@ nodes
3332
| test_free.cpp:103:10:103:10 | a | semmle.label | a |
3433
| test_free.cpp:128:10:128:11 | pointer to free output argument | semmle.label | pointer to free output argument |
3534
| test_free.cpp:129:10:129:11 | * ... | semmle.label | * ... |
36-
| test_free.cpp:131:10:131:13 | pointer to free output argument | semmle.label | pointer to free output argument |
37-
| test_free.cpp:132:10:132:13 | access to array | semmle.label | access to array |
3835
| test_free.cpp:152:27:152:27 | pointer to free output argument | semmle.label | pointer to free output argument |
3936
| test_free.cpp:154:10:154:10 | a | semmle.label | a |
4037
| test_free.cpp:207:10:207:10 | pointer to free output argument | semmle.label | pointer to free output argument |
@@ -51,6 +48,5 @@ subpaths
5148
| test_free.cpp:85:12:85:12 | a | test_free.cpp:83:12:83:12 | pointer to operator delete output argument | test_free.cpp:85:12:85:12 | a | Memory pointed to by 'a' may already have been freed by $@. | test_free.cpp:83:5:83:13 | delete | delete |
5249
| test_free.cpp:103:10:103:10 | a | test_free.cpp:101:10:101:10 | pointer to free output argument | test_free.cpp:103:10:103:10 | a | Memory pointed to by 'a' may already have been freed by $@. | test_free.cpp:101:5:101:8 | call to free | call to free |
5350
| test_free.cpp:129:10:129:11 | * ... | test_free.cpp:128:10:128:11 | pointer to free output argument | test_free.cpp:129:10:129:11 | * ... | Memory pointed to by '* ...' may already have been freed by $@. | test_free.cpp:128:5:128:8 | call to free | call to free |
54-
| test_free.cpp:132:10:132:13 | access to array | test_free.cpp:131:10:131:13 | pointer to free output argument | test_free.cpp:132:10:132:13 | access to array | Memory pointed to by 'access to array' may already have been freed by $@. | test_free.cpp:131:5:131:8 | call to free | call to free |
5551
| test_free.cpp:154:10:154:10 | a | test_free.cpp:152:27:152:27 | pointer to free output argument | test_free.cpp:154:10:154:10 | a | Memory pointed to by 'a' may already have been freed by $@. | test_free.cpp:152:22:152:25 | call to free | call to free |
5652
| test_free.cpp:209:10:209:10 | a | test_free.cpp:207:10:207:10 | pointer to free output argument | test_free.cpp:209:10:209:10 | a | Memory pointed to by 'a' may already have been freed by $@. | test_free.cpp:207:5:207:8 | call to free | call to free |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void test_ptr_deref(void ** a) {
129129
free(*a); // BAD
130130
*a = malloc(10);
131131
free(a[0]); // GOOD
132-
free(a[1]); // GOOD [FALSE POSITIVE]
132+
free(a[1]); // GOOD
133133
}
134134

135135
struct list {

0 commit comments

Comments
 (0)