C++: Make ql-for-ql happy. · LWSimpkins/codeql@ce3654c · GitHub
Skip to content

Commit ce3654c

Browse files
committed
C++: Make ql-for-ql happy.
1 parent 162ec28 commit ce3654c

4 files changed

Lines changed: 18 additions & 18 deletions

File tree

‎cpp/ql/src/experimental/Likely Bugs/ArrayAccessProductFlow.ql‎

Lines changed: 1 addition & 1 deletion

‎cpp/ql/src/experimental/Likely Bugs/OverrunWriteProductFlow.ql‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ from
3333
DataFlow::PathNode sink1, DataFlow2::PathNode sink2
3434
where conf.hasFlowPath(source1, source2, sink1, sink2)
3535
// TODO: pull delta out and display it
36-
select sink1.getNode(), source1, sink1, "overrunning write allocated at $@ bounded by $@", source1,
36+
select sink1.getNode(), source1, sink1, "Overrunning write allocated at $@ bounded by $@.", source1,
3737
source1.toString(), sink2, sink2.toString()

‎cpp/ql/test/experimental/query-tests/Security/CWE/CWE-119/OverrunWriteProductFlow.expected‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ nodes
2929
| test.cpp:35:21:35:23 | str indirection [string] | semmle.label | str indirection [string] |
3030
subpaths
3131
#select
32-
| test.cpp:26:18:26:23 | Load | test.cpp:18:19:18:24 | call to malloc | test.cpp:26:18:26:23 | Load | overrunning write allocated at $@ bounded by $@ | test.cpp:18:19:18:24 | call to malloc | call to malloc | test.cpp:26:31:26:39 | Convert | Convert |
33-
| test.cpp:30:18:30:23 | Load | test.cpp:18:19:18:24 | call to malloc | test.cpp:30:18:30:23 | Load | overrunning write allocated at $@ bounded by $@ | test.cpp:18:19:18:24 | call to malloc | call to malloc | test.cpp:30:31:30:39 | Convert | Convert |
32+
| test.cpp:26:18:26:23 | Load | test.cpp:18:19:18:24 | call to malloc | test.cpp:26:18:26:23 | Load | Overrunning write allocated at $@ bounded by $@. | test.cpp:18:19:18:24 | call to malloc | call to malloc | test.cpp:26:31:26:39 | Convert | Convert |
33+
| test.cpp:30:18:30:23 | Load | test.cpp:18:19:18:24 | call to malloc | test.cpp:30:18:30:23 | Load | Overrunning write allocated at $@ bounded by $@. | test.cpp:18:19:18:24 | call to malloc | call to malloc | test.cpp:30:31:30:39 | Convert | Convert |

‎cpp/ql/test/experimental/query-tests/Security/CWE/CWE-193/array-access/ArrayAccessProductFlow.expected‎

Lines changed: 14 additions & 14 deletions

0 commit comments

Comments
 (0)