Skip to content

Commit 3c16712

Browse files
committed
C++: Accept test output
1 parent 218a3cf commit 3c16712

File tree

4 files changed

+1
-23
lines changed

4 files changed

+1
-23
lines changed

cpp/ql/test/library-tests/dataflow/DefaultTaintTracking/tainted.expected

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@
103103
| defaulttainttracking.cpp:110:17:110:22 | call to getenv | defaulttainttracking.cpp:110:17:110:32 | (int)... |
104104
| defaulttainttracking.cpp:110:17:110:22 | call to getenv | defaulttainttracking.cpp:110:17:110:32 | access to array |
105105
| defaulttainttracking.cpp:110:17:110:22 | call to getenv | defaulttainttracking.cpp:111:12:111:18 | tainted |
106-
| defaulttainttracking.cpp:110:17:110:22 | call to getenv | defaulttainttracking.cpp:118:11:118:11 | x |
107-
| defaulttainttracking.cpp:110:17:110:22 | call to getenv | shared.h:6:15:6:23 | sinkparam |
108106
| dispatch.cpp:28:29:28:34 | call to getenv | dispatch.cpp:28:24:28:27 | call to atoi |
109107
| dispatch.cpp:28:29:28:34 | call to getenv | dispatch.cpp:28:29:28:34 | call to getenv |
110108
| dispatch.cpp:28:29:28:34 | call to getenv | dispatch.cpp:28:29:28:45 | (const char *)... |

cpp/ql/test/library-tests/dataflow/DefaultTaintTracking/test_diff.expected

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
| defaulttainttracking.cpp:97:27:97:32 | call to getenv | defaulttainttracking.cpp:98:10:98:11 | p2 | IR only |
2222
| defaulttainttracking.cpp:97:27:97:32 | call to getenv | shared.h:5:23:5:31 | sinkparam | IR only |
2323
| defaulttainttracking.cpp:110:17:110:22 | call to getenv | defaulttainttracking.cpp:111:8:111:8 | y | AST only |
24-
| defaulttainttracking.cpp:110:17:110:22 | call to getenv | defaulttainttracking.cpp:118:11:118:11 | x | IR only |
25-
| defaulttainttracking.cpp:110:17:110:22 | call to getenv | shared.h:6:15:6:23 | sinkparam | IR only |
2624
| globals.cpp:13:15:13:20 | call to getenv | globals.cpp:13:5:13:11 | global1 | AST only |
2725
| globals.cpp:23:15:23:20 | call to getenv | globals.cpp:23:5:23:11 | global2 | AST only |
2826
| test_diff.cpp:104:12:104:15 | argv | test_diff.cpp:104:11:104:20 | (...) | IR only |

cpp/ql/test/library-tests/dataflow/dataflow-tests/dataflow-ir-consistency.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ postIsNotPre
3131
postHasUniquePre
3232
uniquePostUpdate
3333
| ref.cpp:83:5:83:17 | Chi | Node has multiple PostUpdateNodes. |
34+
| ref.cpp:100:34:100:36 | InitializeIndirection | Node has multiple PostUpdateNodes. |
3435
| ref.cpp:109:5:109:22 | Chi | Node has multiple PostUpdateNodes. |
3536
postIsInSameCallable
3637
reverseRead

cpp/ql/test/query-tests/Security/CWE/CWE-190/semmle/TaintedAllocationSize/TaintedAllocationSize.expected

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
edges
2-
| field_conflation.c:12:22:12:27 | call to getenv | field_conflation.c:13:3:13:18 | Chi |
3-
| field_conflation.c:12:22:12:34 | (const char *)... | field_conflation.c:13:3:13:18 | Chi |
4-
| field_conflation.c:13:3:13:18 | Chi | field_conflation.c:19:15:19:17 | taint_array output argument |
5-
| field_conflation.c:19:15:19:17 | taint_array output argument | field_conflation.c:20:10:20:13 | (unsigned long)... |
6-
| field_conflation.c:19:15:19:17 | taint_array output argument | field_conflation.c:20:13:20:13 | x |
7-
| field_conflation.c:19:15:19:17 | taint_array output argument | field_conflation.c:20:13:20:13 | x |
8-
| field_conflation.c:19:15:19:17 | taint_array output argument | field_conflation.c:20:13:20:13 | x |
9-
| field_conflation.c:20:13:20:13 | x | field_conflation.c:20:10:20:13 | (unsigned long)... |
10-
| field_conflation.c:20:13:20:13 | x | field_conflation.c:20:13:20:13 | x |
112
| test.cpp:39:21:39:24 | argv | test.cpp:42:38:42:44 | (size_t)... |
123
| test.cpp:39:21:39:24 | argv | test.cpp:42:38:42:44 | (size_t)... |
134
| test.cpp:39:21:39:24 | argv | test.cpp:42:38:42:44 | tainted |
@@ -69,15 +60,6 @@ edges
6960
| test.cpp:235:11:235:20 | (size_t)... | test.cpp:214:23:214:23 | s |
7061
| test.cpp:237:10:237:19 | (size_t)... | test.cpp:220:21:220:21 | s |
7162
nodes
72-
| field_conflation.c:12:22:12:27 | call to getenv | semmle.label | call to getenv |
73-
| field_conflation.c:12:22:12:34 | (const char *)... | semmle.label | (const char *)... |
74-
| field_conflation.c:13:3:13:18 | Chi | semmle.label | Chi |
75-
| field_conflation.c:19:15:19:17 | taint_array output argument | semmle.label | taint_array output argument |
76-
| field_conflation.c:20:10:20:13 | (unsigned long)... | semmle.label | (unsigned long)... |
77-
| field_conflation.c:20:10:20:13 | (unsigned long)... | semmle.label | (unsigned long)... |
78-
| field_conflation.c:20:13:20:13 | x | semmle.label | x |
79-
| field_conflation.c:20:13:20:13 | x | semmle.label | x |
80-
| field_conflation.c:20:13:20:13 | x | semmle.label | x |
8163
| test.cpp:39:21:39:24 | argv | semmle.label | argv |
8264
| test.cpp:39:21:39:24 | argv | semmle.label | argv |
8365
| test.cpp:42:38:42:44 | (size_t)... | semmle.label | (size_t)... |
@@ -141,7 +123,6 @@ nodes
141123
| test.cpp:235:11:235:20 | (size_t)... | semmle.label | (size_t)... |
142124
| test.cpp:237:10:237:19 | (size_t)... | semmle.label | (size_t)... |
143125
#select
144-
| field_conflation.c:20:3:20:8 | call to malloc | field_conflation.c:12:22:12:27 | call to getenv | field_conflation.c:20:13:20:13 | x | This allocation size is derived from $@ and might overflow | field_conflation.c:12:22:12:27 | call to getenv | user input (getenv) |
145126
| test.cpp:42:31:42:36 | call to malloc | test.cpp:39:21:39:24 | argv | test.cpp:42:38:42:44 | tainted | This allocation size is derived from $@ and might overflow | test.cpp:39:21:39:24 | argv | user input (argv) |
146127
| test.cpp:43:31:43:36 | call to malloc | test.cpp:39:21:39:24 | argv | test.cpp:43:38:43:63 | ... * ... | This allocation size is derived from $@ and might overflow | test.cpp:39:21:39:24 | argv | user input (argv) |
147128
| test.cpp:45:31:45:36 | call to malloc | test.cpp:39:21:39:24 | argv | test.cpp:45:38:45:63 | ... + ... | This allocation size is derived from $@ and might overflow | test.cpp:39:21:39:24 | argv | user input (argv) |

0 commit comments

Comments
 (0)