CPP: Use newer dataflow for the fix. · github/codeql@faeb326 · GitHub
Skip to content

Commit faeb326

Browse files
committed
CPP: Use newer dataflow for the fix.
1 parent 7d8886e commit faeb326

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

cpp/ql/src/Critical/NewDelete.qll

Lines changed: 4 additions & 4 deletions

cpp/ql/test/query-tests/Critical/NewFree/NewFreeMismatch.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
| test.cpp:91:3:91:11 | delete | There is a malloc/delete mismatch between this delete and the corresponding $@. | test.cpp:88:28:88:36 | call to my_malloc | malloc |
77
| test.cpp:99:3:99:11 | call to my_delete | There is a malloc/delete mismatch between this delete and the corresponding $@. | test.cpp:96:28:96:33 | call to malloc | malloc |
88
| test.cpp:138:2:138:9 | delete | There is a malloc/delete mismatch between this delete and the corresponding $@. | test.cpp:135:12:135:22 | call to my_malloc_2 | malloc |
9+
| test.cpp:155:2:155:9 | delete | There is a malloc/delete mismatch between this delete and the corresponding $@. | test.cpp:152:12:152:22 | call to my_malloc_3 | malloc |
910
| test.cpp:232:2:232:9 | delete | There is a malloc/delete mismatch between this delete and the corresponding $@. | test.cpp:226:7:226:12 | call to malloc | malloc |
1011
| test.cpp:233:2:233:12 | delete[] | There is a malloc/delete mismatch between this delete[] and the corresponding $@. | test.cpp:226:7:226:12 | call to malloc | malloc |
1112
| test.cpp:235:2:235:5 | call to free | There is a new/free mismatch between this free and the corresponding $@. | test.cpp:227:7:227:13 | new | new |

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

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)