Skip to content

Commit 86b1d03

Browse files
committed
C++: accept test regressions
1 parent f9e0ba1 commit 86b1d03

File tree

2 files changed

+0
-46
lines changed

2 files changed

+0
-46
lines changed

cpp/ql/test/library-tests/dataflow/fields/ir-path-flow.expected

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -135,40 +135,24 @@ edges
135135
| by_reference.cpp:128:15:128:23 | Chi [a] | by_reference.cpp:136:16:136:16 | a |
136136
| by_reference.cpp:128:15:128:23 | taint_a_ref output argument [array content] | by_reference.cpp:128:15:128:23 | Chi |
137137
| complex.cpp:40:17:40:17 | *b [a_] | complex.cpp:42:16:42:16 | f indirection [a_] |
138-
| complex.cpp:40:17:40:17 | *b [b_] | complex.cpp:42:16:42:16 | Chi [b_] |
139138
| complex.cpp:40:17:40:17 | *b [b_] | complex.cpp:42:16:42:16 | f indirection [b_] |
140139
| complex.cpp:40:17:40:17 | *b [b_] | complex.cpp:43:16:43:16 | f indirection [b_] |
141-
| complex.cpp:42:16:42:16 | Chi [b_] | complex.cpp:43:16:43:16 | f indirection [b_] |
142-
| complex.cpp:42:16:42:16 | a output argument [b_] | complex.cpp:42:16:42:16 | Chi [b_] |
143140
| complex.cpp:42:16:42:16 | a output argument [b_] | complex.cpp:43:16:43:16 | f indirection [b_] |
144141
| complex.cpp:42:16:42:16 | f indirection [a_] | complex.cpp:42:18:42:18 | call to a |
145142
| complex.cpp:42:16:42:16 | f indirection [b_] | complex.cpp:42:16:42:16 | a output argument [b_] |
146143
| complex.cpp:43:16:43:16 | f indirection [b_] | complex.cpp:43:18:43:18 | call to b |
147-
| complex.cpp:53:12:53:12 | Chi [a_] | complex.cpp:59:7:59:8 | b1 indirection [a_] |
148-
| complex.cpp:53:12:53:12 | setA output argument [a_] | complex.cpp:53:12:53:12 | Chi [a_] |
149144
| complex.cpp:53:12:53:12 | setA output argument [a_] | complex.cpp:59:7:59:8 | b1 indirection [a_] |
150145
| complex.cpp:53:14:53:17 | call to user_input | complex.cpp:53:12:53:12 | setA output argument [a_] |
151146
| complex.cpp:53:19:53:28 | call to user_input | complex.cpp:53:14:53:17 | call to user_input |
152-
| complex.cpp:54:12:54:12 | Chi [b_] | complex.cpp:62:7:62:8 | b2 indirection [b_] |
153-
| complex.cpp:54:12:54:12 | setB output argument [b_] | complex.cpp:54:12:54:12 | Chi [b_] |
154147
| complex.cpp:54:12:54:12 | setB output argument [b_] | complex.cpp:62:7:62:8 | b2 indirection [b_] |
155148
| complex.cpp:54:14:54:17 | call to user_input | complex.cpp:54:12:54:12 | setB output argument [b_] |
156149
| complex.cpp:54:19:54:28 | call to user_input | complex.cpp:54:14:54:17 | call to user_input |
157-
| complex.cpp:55:12:55:12 | Chi [a_] | complex.cpp:56:12:56:12 | Chi [a_] |
158-
| complex.cpp:55:12:55:12 | Chi [a_] | complex.cpp:56:12:56:12 | f indirection [a_] |
159-
| complex.cpp:55:12:55:12 | Chi [a_] | complex.cpp:65:7:65:8 | b3 indirection [a_] |
160-
| complex.cpp:55:12:55:12 | setA output argument [a_] | complex.cpp:55:12:55:12 | Chi [a_] |
161-
| complex.cpp:55:12:55:12 | setA output argument [a_] | complex.cpp:56:12:56:12 | Chi [a_] |
162150
| complex.cpp:55:12:55:12 | setA output argument [a_] | complex.cpp:56:12:56:12 | f indirection [a_] |
163151
| complex.cpp:55:12:55:12 | setA output argument [a_] | complex.cpp:65:7:65:8 | b3 indirection [a_] |
164152
| complex.cpp:55:14:55:17 | call to user_input | complex.cpp:55:12:55:12 | setA output argument [a_] |
165153
| complex.cpp:55:19:55:28 | call to user_input | complex.cpp:55:14:55:17 | call to user_input |
166-
| complex.cpp:56:12:56:12 | Chi [a_] | complex.cpp:65:7:65:8 | b3 indirection [a_] |
167-
| complex.cpp:56:12:56:12 | Chi [b_] | complex.cpp:65:7:65:8 | b3 indirection [b_] |
168154
| complex.cpp:56:12:56:12 | f indirection [a_] | complex.cpp:56:12:56:12 | setB output argument [a_] |
169-
| complex.cpp:56:12:56:12 | setB output argument [a_] | complex.cpp:56:12:56:12 | Chi [a_] |
170155
| complex.cpp:56:12:56:12 | setB output argument [a_] | complex.cpp:65:7:65:8 | b3 indirection [a_] |
171-
| complex.cpp:56:12:56:12 | setB output argument [b_] | complex.cpp:56:12:56:12 | Chi [b_] |
172156
| complex.cpp:56:12:56:12 | setB output argument [b_] | complex.cpp:65:7:65:8 | b3 indirection [b_] |
173157
| complex.cpp:56:14:56:17 | call to user_input | complex.cpp:56:12:56:12 | setB output argument [b_] |
174158
| complex.cpp:56:19:56:28 | call to user_input | complex.cpp:56:14:56:17 | call to user_input |
@@ -410,27 +394,21 @@ nodes
410394
| by_reference.cpp:136:16:136:16 | a | semmle.label | a |
411395
| complex.cpp:40:17:40:17 | *b [a_] | semmle.label | *b [a_] |
412396
| complex.cpp:40:17:40:17 | *b [b_] | semmle.label | *b [b_] |
413-
| complex.cpp:42:16:42:16 | Chi [b_] | semmle.label | Chi [b_] |
414397
| complex.cpp:42:16:42:16 | a output argument [b_] | semmle.label | a output argument [b_] |
415398
| complex.cpp:42:16:42:16 | f indirection [a_] | semmle.label | f indirection [a_] |
416399
| complex.cpp:42:16:42:16 | f indirection [b_] | semmle.label | f indirection [b_] |
417400
| complex.cpp:42:18:42:18 | call to a | semmle.label | call to a |
418401
| complex.cpp:43:16:43:16 | f indirection [b_] | semmle.label | f indirection [b_] |
419402
| complex.cpp:43:18:43:18 | call to b | semmle.label | call to b |
420-
| complex.cpp:53:12:53:12 | Chi [a_] | semmle.label | Chi [a_] |
421403
| complex.cpp:53:12:53:12 | setA output argument [a_] | semmle.label | setA output argument [a_] |
422404
| complex.cpp:53:14:53:17 | call to user_input | semmle.label | call to user_input |
423405
| complex.cpp:53:19:53:28 | call to user_input | semmle.label | call to user_input |
424-
| complex.cpp:54:12:54:12 | Chi [b_] | semmle.label | Chi [b_] |
425406
| complex.cpp:54:12:54:12 | setB output argument [b_] | semmle.label | setB output argument [b_] |
426407
| complex.cpp:54:14:54:17 | call to user_input | semmle.label | call to user_input |
427408
| complex.cpp:54:19:54:28 | call to user_input | semmle.label | call to user_input |
428-
| complex.cpp:55:12:55:12 | Chi [a_] | semmle.label | Chi [a_] |
429409
| complex.cpp:55:12:55:12 | setA output argument [a_] | semmle.label | setA output argument [a_] |
430410
| complex.cpp:55:14:55:17 | call to user_input | semmle.label | call to user_input |
431411
| complex.cpp:55:19:55:28 | call to user_input | semmle.label | call to user_input |
432-
| complex.cpp:56:12:56:12 | Chi [a_] | semmle.label | Chi [a_] |
433-
| complex.cpp:56:12:56:12 | Chi [b_] | semmle.label | Chi [b_] |
434412
| complex.cpp:56:12:56:12 | f indirection [a_] | semmle.label | f indirection [a_] |
435413
| complex.cpp:56:12:56:12 | setB output argument [a_] | semmle.label | setB output argument [a_] |
436414
| complex.cpp:56:12:56:12 | setB output argument [b_] | semmle.label | setB output argument [b_] |

cpp/ql/test/query-tests/Security/CWE/CWE-114/semmle/UncontrolledProcessOperation/UncontrolledProcessOperation.expected

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,15 @@ edges
2626
| test.cpp:56:12:56:17 | buffer | test.cpp:62:10:62:15 | (const char *)... |
2727
| test.cpp:56:12:56:17 | buffer | test.cpp:62:10:62:15 | buffer |
2828
| test.cpp:56:12:56:17 | buffer | test.cpp:62:10:62:15 | buffer indirection |
29-
| test.cpp:56:12:56:17 | buffer | test.cpp:63:10:63:13 | (const char *)... |
30-
| test.cpp:56:12:56:17 | buffer | test.cpp:63:10:63:13 | data |
31-
| test.cpp:56:12:56:17 | buffer | test.cpp:63:10:63:13 | data indirection |
3229
| test.cpp:56:12:56:17 | fgets output argument | test.cpp:62:10:62:15 | (const char *)... |
3330
| test.cpp:56:12:56:17 | fgets output argument | test.cpp:62:10:62:15 | buffer |
3431
| test.cpp:56:12:56:17 | fgets output argument | test.cpp:62:10:62:15 | buffer indirection |
35-
| test.cpp:56:12:56:17 | fgets output argument | test.cpp:63:10:63:13 | (const char *)... |
36-
| test.cpp:56:12:56:17 | fgets output argument | test.cpp:63:10:63:13 | data |
37-
| test.cpp:56:12:56:17 | fgets output argument | test.cpp:63:10:63:13 | data indirection |
3832
| test.cpp:76:12:76:17 | buffer | test.cpp:78:10:78:15 | (const char *)... |
3933
| test.cpp:76:12:76:17 | buffer | test.cpp:78:10:78:15 | buffer |
4034
| test.cpp:76:12:76:17 | buffer | test.cpp:78:10:78:15 | buffer indirection |
41-
| test.cpp:76:12:76:17 | buffer | test.cpp:79:10:79:13 | (const char *)... |
42-
| test.cpp:76:12:76:17 | buffer | test.cpp:79:10:79:13 | data |
43-
| test.cpp:76:12:76:17 | buffer | test.cpp:79:10:79:13 | data indirection |
4435
| test.cpp:76:12:76:17 | fgets output argument | test.cpp:78:10:78:15 | (const char *)... |
4536
| test.cpp:76:12:76:17 | fgets output argument | test.cpp:78:10:78:15 | buffer |
4637
| test.cpp:76:12:76:17 | fgets output argument | test.cpp:78:10:78:15 | buffer indirection |
47-
| test.cpp:76:12:76:17 | fgets output argument | test.cpp:79:10:79:13 | (const char *)... |
48-
| test.cpp:76:12:76:17 | fgets output argument | test.cpp:79:10:79:13 | data |
49-
| test.cpp:76:12:76:17 | fgets output argument | test.cpp:79:10:79:13 | data indirection |
5038
| test.cpp:98:17:98:22 | buffer | test.cpp:99:15:99:20 | (const char *)... |
5139
| test.cpp:98:17:98:22 | buffer | test.cpp:99:15:99:20 | buffer |
5240
| test.cpp:98:17:98:22 | buffer | test.cpp:99:15:99:20 | buffer indirection |
@@ -89,23 +77,13 @@ nodes
8977
| test.cpp:62:10:62:15 | buffer | semmle.label | buffer |
9078
| test.cpp:62:10:62:15 | buffer indirection | semmle.label | buffer indirection |
9179
| test.cpp:62:10:62:15 | buffer indirection | semmle.label | buffer indirection |
92-
| test.cpp:63:10:63:13 | (const char *)... | semmle.label | (const char *)... |
93-
| test.cpp:63:10:63:13 | (const char *)... | semmle.label | (const char *)... |
94-
| test.cpp:63:10:63:13 | data | semmle.label | data |
95-
| test.cpp:63:10:63:13 | data indirection | semmle.label | data indirection |
96-
| test.cpp:63:10:63:13 | data indirection | semmle.label | data indirection |
9780
| test.cpp:76:12:76:17 | buffer | semmle.label | buffer |
9881
| test.cpp:76:12:76:17 | fgets output argument | semmle.label | fgets output argument |
9982
| test.cpp:78:10:78:15 | (const char *)... | semmle.label | (const char *)... |
10083
| test.cpp:78:10:78:15 | (const char *)... | semmle.label | (const char *)... |
10184
| test.cpp:78:10:78:15 | buffer | semmle.label | buffer |
10285
| test.cpp:78:10:78:15 | buffer indirection | semmle.label | buffer indirection |
10386
| test.cpp:78:10:78:15 | buffer indirection | semmle.label | buffer indirection |
104-
| test.cpp:79:10:79:13 | (const char *)... | semmle.label | (const char *)... |
105-
| test.cpp:79:10:79:13 | (const char *)... | semmle.label | (const char *)... |
106-
| test.cpp:79:10:79:13 | data | semmle.label | data |
107-
| test.cpp:79:10:79:13 | data indirection | semmle.label | data indirection |
108-
| test.cpp:79:10:79:13 | data indirection | semmle.label | data indirection |
10987
| test.cpp:98:17:98:22 | buffer | semmle.label | buffer |
11088
| test.cpp:98:17:98:22 | recv output argument | semmle.label | recv output argument |
11189
| test.cpp:99:15:99:20 | (const char *)... | semmle.label | (const char *)... |
@@ -124,8 +102,6 @@ nodes
124102
| test.cpp:26:10:26:16 | command | test.cpp:42:18:42:23 | call to getenv | test.cpp:26:10:26:16 | command | The value of this argument may come from $@ and is being passed to system | test.cpp:42:18:42:23 | call to getenv | call to getenv |
125103
| test.cpp:31:10:31:16 | command | test.cpp:43:18:43:23 | call to getenv | test.cpp:31:10:31:16 | command | The value of this argument may come from $@ and is being passed to system | test.cpp:43:18:43:23 | call to getenv | call to getenv |
126104
| test.cpp:62:10:62:15 | buffer | test.cpp:56:12:56:17 | buffer | test.cpp:62:10:62:15 | buffer | The value of this argument may come from $@ and is being passed to system | test.cpp:56:12:56:17 | buffer | buffer |
127-
| test.cpp:63:10:63:13 | data | test.cpp:56:12:56:17 | buffer | test.cpp:63:10:63:13 | data | The value of this argument may come from $@ and is being passed to system | test.cpp:56:12:56:17 | buffer | buffer |
128105
| test.cpp:78:10:78:15 | buffer | test.cpp:76:12:76:17 | buffer | test.cpp:78:10:78:15 | buffer | The value of this argument may come from $@ and is being passed to system | test.cpp:76:12:76:17 | buffer | buffer |
129-
| test.cpp:79:10:79:13 | data | test.cpp:76:12:76:17 | buffer | test.cpp:79:10:79:13 | data | The value of this argument may come from $@ and is being passed to system | test.cpp:76:12:76:17 | buffer | buffer |
130106
| test.cpp:99:15:99:20 | buffer | test.cpp:98:17:98:22 | buffer | test.cpp:99:15:99:20 | buffer | The value of this argument may come from $@ and is being passed to LoadLibrary | test.cpp:98:17:98:22 | buffer | buffer |
131107
| test.cpp:107:15:107:20 | buffer | test.cpp:106:17:106:22 | buffer | test.cpp:107:15:107:20 | buffer | The value of this argument may come from $@ and is being passed to LoadLibrary | test.cpp:106:17:106:22 | buffer | buffer |

0 commit comments

Comments
 (0)