Skip to content

Commit 6c52b8f

Browse files
committed
C++: Accept test changes.
1 parent c9bcbf7 commit 6c52b8f

File tree

10 files changed

+114
-13
lines changed

10 files changed

+114
-13
lines changed

cpp/ql/test/library-tests/dataflow/dataflow-tests/test-source-sink.expected

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,18 @@ irFlow
307307
| test.cpp:915:57:915:76 | *indirect_source(1) | test.cpp:921:19:921:50 | *global_pointer_static_indirect_1 |
308308
| test.cpp:931:10:931:15 | call to source | test.cpp:936:19:936:32 | *global_int_ptr |
309309
| test.cpp:931:10:931:15 | call to source | test.cpp:941:10:941:24 | * ... |
310+
| test.cpp:931:10:931:15 | call to source | test.cpp:950:19:950:32 | *global_int_ptr |
311+
| test.cpp:931:10:931:15 | call to source | test.cpp:955:10:955:24 | * ... |
310312
| test.cpp:931:10:931:15 | call to source | test.cpp:1000:19:1000:34 | *global_int_array |
311313
| test.cpp:931:10:931:15 | call to source | test.cpp:1005:10:1005:26 | * ... |
314+
| test.cpp:931:10:931:15 | call to source | test.cpp:1014:19:1014:34 | *global_int_array |
315+
| test.cpp:931:10:931:15 | call to source | test.cpp:1019:10:1019:26 | * ... |
312316
| test.cpp:961:10:961:24 | *call to indirect_source | test.cpp:966:19:966:36 | **global_int_ptr_ptr |
313317
| test.cpp:961:10:961:24 | *call to indirect_source | test.cpp:972:19:972:37 | ** ... |
314318
| test.cpp:961:10:961:24 | *call to indirect_source | test.cpp:975:10:975:29 | * ... |
319+
| test.cpp:961:10:961:24 | *call to indirect_source | test.cpp:984:19:984:36 | **global_int_ptr_ptr |
320+
| test.cpp:961:10:961:24 | *call to indirect_source | test.cpp:990:19:990:37 | ** ... |
321+
| test.cpp:961:10:961:24 | *call to indirect_source | test.cpp:993:10:993:29 | * ... |
315322
| true_upon_entry.cpp:9:11:9:16 | call to source | true_upon_entry.cpp:13:8:13:8 | x |
316323
| true_upon_entry.cpp:17:11:17:16 | call to source | true_upon_entry.cpp:21:8:21:8 | x |
317324
| true_upon_entry.cpp:27:9:27:14 | call to source | true_upon_entry.cpp:29:8:29:8 | x |

cpp/ql/test/library-tests/dataflow/dataflow-tests/test.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -947,12 +947,12 @@ namespace globals_without_explicit_def {
947947

948948
void test3() {
949949
calls_set();
950-
indirect_sink(global_int_ptr); // $ MISSING: ast,ir
950+
indirect_sink(global_int_ptr); // $ ir MISSING: ast
951951
}
952952

953953
void test4() {
954954
calls_set();
955-
sink(*global_int_ptr); // $ MISSING: ast,ir
955+
sink(*global_int_ptr); // $ ir MISSING: ast
956956
}
957957

958958
int** global_int_ptr_ptr;
@@ -981,16 +981,16 @@ namespace globals_without_explicit_def {
981981

982982
void test7() {
983983
calls_set_indirect();
984-
indirect_sink(global_int_ptr_ptr); // $ MISSING: ast,ir
984+
indirect_sink(global_int_ptr_ptr); // $ ir MISSING: ast
985985
sink(global_int_ptr_ptr); // $ MISSING: ast
986986
}
987987

988988
void test8() {
989989
calls_set_indirect();
990-
indirect_sink(*global_int_ptr_ptr); // $ MISSING: ast,ir
990+
indirect_sink(*global_int_ptr_ptr); // $ ir MISSING: ast
991991
sink(*global_int_ptr_ptr);
992992
indirect_sink(**global_int_ptr_ptr);
993-
sink(**global_int_ptr_ptr); // $ MISSING: ast,ir
993+
sink(**global_int_ptr_ptr); // $ ir MISSING: ast
994994
}
995995

996996
int global_int_array[10];
@@ -1011,11 +1011,11 @@ namespace globals_without_explicit_def {
10111011

10121012
void test11() {
10131013
calls_set_array();
1014-
indirect_sink(global_int_array); // $ MISSING: ast,ir
1014+
indirect_sink(global_int_array); // $ ir MISSING: ast
10151015
}
10161016

10171017
void test12() {
10181018
calls_set_array();
1019-
sink(*global_int_array); // $ MISSING: ast,ir
1019+
sink(*global_int_array); // $ ir MISSING: ast
10201020
}
10211021
}

cpp/ql/test/library-tests/dataflow/fields/aliasing.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,15 @@ namespace GlobalFieldFlow {
215215
}
216216

217217
void read_field() {
218-
sink(global_s.m1); // $ MISSING: ast,ir
218+
sink(global_s.m1); // $ ir MISSING: ast
219219
}
220220

221221
void set_nested_field() {
222222
global_s2.s.m1 = user_input();
223223
}
224224

225225
void read_nested_field() {
226-
sink(global_s2.s.m1); // $ MISSING: ast,ir
226+
sink(global_s2.s.m1); // $ ir MISSING: ast
227227
}
228228

229229
S* global_s_ptr;
@@ -234,15 +234,15 @@ namespace GlobalFieldFlow {
234234
}
235235

236236
void read_field_ptr() {
237-
sink(global_s_ptr->m1); // $ MISSING: ast,ir
237+
sink(global_s_ptr->m1); // $ ir MISSING: ast
238238
}
239239

240240
void set_nested_field_ptr() {
241241
global_s2_ptr->s.m1 = user_input();
242242
}
243243

244244
void read_nested_field_ptr() {
245-
sink(global_s2_ptr->s.m1); // $ MISSING: ast,ir
245+
sink(global_s2_ptr->s.m1); // $ ir MISSING: ast
246246
}
247247

248248
S_with_pointer global_s_with_pointer;
@@ -252,7 +252,7 @@ namespace GlobalFieldFlow {
252252
}
253253

254254
void read_field_indirect() {
255-
sink(*global_s_with_pointer.data); // $ MISSING: ast,ir
255+
sink(*global_s_with_pointer.data); // $ ir MISSING: ast
256256
}
257257

258258
S_with_array global_s_with_array;
@@ -262,6 +262,6 @@ namespace GlobalFieldFlow {
262262
}
263263

264264
void read_field_array() {
265-
sink(*global_s_with_array.data); // $ MISSING: ast,ir
265+
sink(*global_s_with_array.data); // $ ir MISSING: ast
266266
}
267267
}

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

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,42 @@ edges
271271
| aliasing.cpp:200:21:200:21 | *s [post update] [m1] | aliasing.cpp:200:16:200:18 | *ps2 [post update] [s, m1] |
272272
| aliasing.cpp:201:8:201:10 | *ps2 [s, m1] | aliasing.cpp:201:13:201:13 | *s [m1] |
273273
| aliasing.cpp:201:13:201:13 | *s [m1] | aliasing.cpp:201:15:201:16 | m1 |
274+
| aliasing.cpp:210:5:210:12 | *global_s [m1] | aliasing.cpp:218:10:218:17 | *global_s [m1] |
275+
| aliasing.cpp:211:6:211:14 | *global_s2 [s, m1] | aliasing.cpp:211:6:211:14 | *global_s2 [s, m1] |
276+
| aliasing.cpp:211:6:211:14 | *global_s2 [s, m1] | aliasing.cpp:226:10:226:18 | *global_s2 [s, m1] |
277+
| aliasing.cpp:214:5:214:12 | *global_s [post update] [m1] | aliasing.cpp:210:5:210:12 | *global_s [m1] |
278+
| aliasing.cpp:214:5:214:30 | ... = ... | aliasing.cpp:214:5:214:12 | *global_s [post update] [m1] |
279+
| aliasing.cpp:214:19:214:28 | call to user_input | aliasing.cpp:214:5:214:30 | ... = ... |
280+
| aliasing.cpp:218:10:218:17 | *global_s [m1] | aliasing.cpp:218:19:218:20 | m1 |
281+
| aliasing.cpp:222:5:222:13 | *global_s2 [post update] [s, m1] | aliasing.cpp:211:6:211:14 | *global_s2 [s, m1] |
282+
| aliasing.cpp:222:5:222:33 | ... = ... | aliasing.cpp:222:15:222:15 | *s [post update] [m1] |
283+
| aliasing.cpp:222:15:222:15 | *s [post update] [m1] | aliasing.cpp:222:5:222:13 | *global_s2 [post update] [s, m1] |
284+
| aliasing.cpp:222:22:222:31 | call to user_input | aliasing.cpp:222:5:222:33 | ... = ... |
285+
| aliasing.cpp:226:10:226:18 | *global_s2 [s, m1] | aliasing.cpp:226:20:226:20 | *s [m1] |
286+
| aliasing.cpp:226:20:226:20 | *s [m1] | aliasing.cpp:226:22:226:23 | m1 |
287+
| aliasing.cpp:229:6:229:17 | **global_s_ptr [m1] | aliasing.cpp:237:10:237:21 | *global_s_ptr [m1] |
288+
| aliasing.cpp:230:7:230:19 | **global_s2_ptr [s, m1] | aliasing.cpp:230:7:230:19 | **global_s2_ptr [s, m1] |
289+
| aliasing.cpp:230:7:230:19 | **global_s2_ptr [s, m1] | aliasing.cpp:245:10:245:22 | *global_s2_ptr [s, m1] |
290+
| aliasing.cpp:233:5:233:16 | *global_s_ptr [post update] [m1] | aliasing.cpp:229:6:229:17 | **global_s_ptr [m1] |
291+
| aliasing.cpp:233:5:233:35 | ... = ... | aliasing.cpp:233:5:233:16 | *global_s_ptr [post update] [m1] |
292+
| aliasing.cpp:233:24:233:33 | call to user_input | aliasing.cpp:233:5:233:35 | ... = ... |
293+
| aliasing.cpp:237:10:237:21 | *global_s_ptr [m1] | aliasing.cpp:237:24:237:25 | m1 |
294+
| aliasing.cpp:241:5:241:17 | *global_s2_ptr [post update] [s, m1] | aliasing.cpp:230:7:230:19 | **global_s2_ptr [s, m1] |
295+
| aliasing.cpp:241:5:241:38 | ... = ... | aliasing.cpp:241:20:241:20 | *s [post update] [m1] |
296+
| aliasing.cpp:241:20:241:20 | *s [post update] [m1] | aliasing.cpp:241:5:241:17 | *global_s2_ptr [post update] [s, m1] |
297+
| aliasing.cpp:241:27:241:36 | call to user_input | aliasing.cpp:241:5:241:38 | ... = ... |
298+
| aliasing.cpp:245:10:245:22 | *global_s2_ptr [s, m1] | aliasing.cpp:245:25:245:25 | *s [m1] |
299+
| aliasing.cpp:245:25:245:25 | *s [m1] | aliasing.cpp:245:27:245:28 | m1 |
300+
| aliasing.cpp:248:18:248:38 | *global_s_with_pointer [*data] | aliasing.cpp:255:11:255:31 | *global_s_with_pointer [*data] |
301+
| aliasing.cpp:251:5:251:46 | ... = ... | aliasing.cpp:251:6:251:26 | *global_s_with_pointer [post update] [*data] |
302+
| aliasing.cpp:251:6:251:26 | *global_s_with_pointer [post update] [*data] | aliasing.cpp:248:18:248:38 | *global_s_with_pointer [*data] |
303+
| aliasing.cpp:251:35:251:44 | call to user_input | aliasing.cpp:251:5:251:46 | ... = ... |
304+
| aliasing.cpp:255:11:255:31 | *global_s_with_pointer [*data] | aliasing.cpp:255:10:255:36 | * ... |
305+
| aliasing.cpp:258:16:258:34 | *global_s_with_array [data] | aliasing.cpp:265:11:265:29 | *global_s_with_array [data] |
306+
| aliasing.cpp:261:5:261:44 | ... = ... | aliasing.cpp:261:6:261:24 | *global_s_with_array [post update] [data] |
307+
| aliasing.cpp:261:6:261:24 | *global_s_with_array [post update] [data] | aliasing.cpp:258:16:258:34 | *global_s_with_array [data] |
308+
| aliasing.cpp:261:33:261:42 | call to user_input | aliasing.cpp:261:5:261:44 | ... = ... |
309+
| aliasing.cpp:265:11:265:29 | *global_s_with_array [data] | aliasing.cpp:265:10:265:34 | * ... |
274310
| arrays.cpp:6:12:6:21 | call to user_input | arrays.cpp:7:8:7:13 | access to array |
275311
| arrays.cpp:6:12:6:21 | call to user_input | arrays.cpp:8:8:8:13 | access to array |
276312
| arrays.cpp:6:12:6:21 | call to user_input | arrays.cpp:9:8:9:11 | * ... |
@@ -1044,6 +1080,46 @@ nodes
10441080
| aliasing.cpp:201:8:201:10 | *ps2 [s, m1] | semmle.label | *ps2 [s, m1] |
10451081
| aliasing.cpp:201:13:201:13 | *s [m1] | semmle.label | *s [m1] |
10461082
| aliasing.cpp:201:15:201:16 | m1 | semmle.label | m1 |
1083+
| aliasing.cpp:210:5:210:12 | *global_s [m1] | semmle.label | *global_s [m1] |
1084+
| aliasing.cpp:211:6:211:14 | *global_s2 [s, m1] | semmle.label | *global_s2 [s, m1] |
1085+
| aliasing.cpp:214:5:214:12 | *global_s [post update] [m1] | semmle.label | *global_s [post update] [m1] |
1086+
| aliasing.cpp:214:5:214:30 | ... = ... | semmle.label | ... = ... |
1087+
| aliasing.cpp:214:19:214:28 | call to user_input | semmle.label | call to user_input |
1088+
| aliasing.cpp:218:10:218:17 | *global_s [m1] | semmle.label | *global_s [m1] |
1089+
| aliasing.cpp:218:19:218:20 | m1 | semmle.label | m1 |
1090+
| aliasing.cpp:222:5:222:13 | *global_s2 [post update] [s, m1] | semmle.label | *global_s2 [post update] [s, m1] |
1091+
| aliasing.cpp:222:5:222:33 | ... = ... | semmle.label | ... = ... |
1092+
| aliasing.cpp:222:15:222:15 | *s [post update] [m1] | semmle.label | *s [post update] [m1] |
1093+
| aliasing.cpp:222:22:222:31 | call to user_input | semmle.label | call to user_input |
1094+
| aliasing.cpp:226:10:226:18 | *global_s2 [s, m1] | semmle.label | *global_s2 [s, m1] |
1095+
| aliasing.cpp:226:20:226:20 | *s [m1] | semmle.label | *s [m1] |
1096+
| aliasing.cpp:226:22:226:23 | m1 | semmle.label | m1 |
1097+
| aliasing.cpp:229:6:229:17 | **global_s_ptr [m1] | semmle.label | **global_s_ptr [m1] |
1098+
| aliasing.cpp:230:7:230:19 | **global_s2_ptr [s, m1] | semmle.label | **global_s2_ptr [s, m1] |
1099+
| aliasing.cpp:233:5:233:16 | *global_s_ptr [post update] [m1] | semmle.label | *global_s_ptr [post update] [m1] |
1100+
| aliasing.cpp:233:5:233:35 | ... = ... | semmle.label | ... = ... |
1101+
| aliasing.cpp:233:24:233:33 | call to user_input | semmle.label | call to user_input |
1102+
| aliasing.cpp:237:10:237:21 | *global_s_ptr [m1] | semmle.label | *global_s_ptr [m1] |
1103+
| aliasing.cpp:237:24:237:25 | m1 | semmle.label | m1 |
1104+
| aliasing.cpp:241:5:241:17 | *global_s2_ptr [post update] [s, m1] | semmle.label | *global_s2_ptr [post update] [s, m1] |
1105+
| aliasing.cpp:241:5:241:38 | ... = ... | semmle.label | ... = ... |
1106+
| aliasing.cpp:241:20:241:20 | *s [post update] [m1] | semmle.label | *s [post update] [m1] |
1107+
| aliasing.cpp:241:27:241:36 | call to user_input | semmle.label | call to user_input |
1108+
| aliasing.cpp:245:10:245:22 | *global_s2_ptr [s, m1] | semmle.label | *global_s2_ptr [s, m1] |
1109+
| aliasing.cpp:245:25:245:25 | *s [m1] | semmle.label | *s [m1] |
1110+
| aliasing.cpp:245:27:245:28 | m1 | semmle.label | m1 |
1111+
| aliasing.cpp:248:18:248:38 | *global_s_with_pointer [*data] | semmle.label | *global_s_with_pointer [*data] |
1112+
| aliasing.cpp:251:5:251:46 | ... = ... | semmle.label | ... = ... |
1113+
| aliasing.cpp:251:6:251:26 | *global_s_with_pointer [post update] [*data] | semmle.label | *global_s_with_pointer [post update] [*data] |
1114+
| aliasing.cpp:251:35:251:44 | call to user_input | semmle.label | call to user_input |
1115+
| aliasing.cpp:255:10:255:36 | * ... | semmle.label | * ... |
1116+
| aliasing.cpp:255:11:255:31 | *global_s_with_pointer [*data] | semmle.label | *global_s_with_pointer [*data] |
1117+
| aliasing.cpp:258:16:258:34 | *global_s_with_array [data] | semmle.label | *global_s_with_array [data] |
1118+
| aliasing.cpp:261:5:261:44 | ... = ... | semmle.label | ... = ... |
1119+
| aliasing.cpp:261:6:261:24 | *global_s_with_array [post update] [data] | semmle.label | *global_s_with_array [post update] [data] |
1120+
| aliasing.cpp:261:33:261:42 | call to user_input | semmle.label | call to user_input |
1121+
| aliasing.cpp:265:10:265:34 | * ... | semmle.label | * ... |
1122+
| aliasing.cpp:265:11:265:29 | *global_s_with_array [data] | semmle.label | *global_s_with_array [data] |
10471123
| arrays.cpp:6:12:6:21 | call to user_input | semmle.label | call to user_input |
10481124
| arrays.cpp:7:8:7:13 | access to array | semmle.label | access to array |
10491125
| arrays.cpp:8:8:8:13 | access to array | semmle.label | access to array |
@@ -1653,6 +1729,12 @@ subpaths
16531729
| aliasing.cpp:176:13:176:14 | m1 | aliasing.cpp:106:9:106:18 | call to user_input | aliasing.cpp:176:13:176:14 | m1 | m1 flows from $@ | aliasing.cpp:106:9:106:18 | call to user_input | call to user_input |
16541730
| aliasing.cpp:189:15:189:16 | m1 | aliasing.cpp:106:9:106:18 | call to user_input | aliasing.cpp:189:15:189:16 | m1 | m1 flows from $@ | aliasing.cpp:106:9:106:18 | call to user_input | call to user_input |
16551731
| aliasing.cpp:201:15:201:16 | m1 | aliasing.cpp:106:9:106:18 | call to user_input | aliasing.cpp:201:15:201:16 | m1 | m1 flows from $@ | aliasing.cpp:106:9:106:18 | call to user_input | call to user_input |
1732+
| aliasing.cpp:218:19:218:20 | m1 | aliasing.cpp:214:19:214:28 | call to user_input | aliasing.cpp:218:19:218:20 | m1 | m1 flows from $@ | aliasing.cpp:214:19:214:28 | call to user_input | call to user_input |
1733+
| aliasing.cpp:226:22:226:23 | m1 | aliasing.cpp:222:22:222:31 | call to user_input | aliasing.cpp:226:22:226:23 | m1 | m1 flows from $@ | aliasing.cpp:222:22:222:31 | call to user_input | call to user_input |
1734+
| aliasing.cpp:237:24:237:25 | m1 | aliasing.cpp:233:24:233:33 | call to user_input | aliasing.cpp:237:24:237:25 | m1 | m1 flows from $@ | aliasing.cpp:233:24:233:33 | call to user_input | call to user_input |
1735+
| aliasing.cpp:245:27:245:28 | m1 | aliasing.cpp:241:27:241:36 | call to user_input | aliasing.cpp:245:27:245:28 | m1 | m1 flows from $@ | aliasing.cpp:241:27:241:36 | call to user_input | call to user_input |
1736+
| aliasing.cpp:255:10:255:36 | * ... | aliasing.cpp:251:35:251:44 | call to user_input | aliasing.cpp:255:10:255:36 | * ... | * ... flows from $@ | aliasing.cpp:251:35:251:44 | call to user_input | call to user_input |
1737+
| aliasing.cpp:265:10:265:34 | * ... | aliasing.cpp:261:33:261:42 | call to user_input | aliasing.cpp:265:10:265:34 | * ... | * ... flows from $@ | aliasing.cpp:261:33:261:42 | call to user_input | call to user_input |
16561738
| arrays.cpp:7:8:7:13 | access to array | arrays.cpp:6:12:6:21 | call to user_input | arrays.cpp:7:8:7:13 | access to array | access to array flows from $@ | arrays.cpp:6:12:6:21 | call to user_input | call to user_input |
16571739
| arrays.cpp:8:8:8:13 | access to array | arrays.cpp:6:12:6:21 | call to user_input | arrays.cpp:8:8:8:13 | access to array | access to array flows from $@ | arrays.cpp:6:12:6:21 | call to user_input | call to user_input |
16581740
| arrays.cpp:9:8:9:11 | * ... | arrays.cpp:6:12:6:21 | call to user_input | arrays.cpp:9:8:9:11 | * ... | * ... flows from $@ | arrays.cpp:6:12:6:21 | call to user_input | call to user_input |

cpp/ql/test/query-tests/Security/CWE/CWE-134/semmle/globalVars/UncontrolledFormatString.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
edges
2+
| globalVars.c:8:7:8:10 | **copy | globalVars.c:8:7:8:10 | **copy |
23
| globalVars.c:8:7:8:10 | **copy | globalVars.c:27:9:27:12 | *copy |
34
| globalVars.c:8:7:8:10 | **copy | globalVars.c:30:15:30:18 | *copy |
45
| globalVars.c:8:7:8:10 | **copy | globalVars.c:35:11:35:14 | *copy |
6+
| globalVars.c:9:7:9:11 | **copy2 | globalVars.c:9:7:9:11 | **copy2 |
57
| globalVars.c:9:7:9:11 | **copy2 | globalVars.c:38:9:38:13 | *copy2 |
68
| globalVars.c:9:7:9:11 | **copy2 | globalVars.c:41:15:41:19 | *copy2 |
79
| globalVars.c:9:7:9:11 | **copy2 | globalVars.c:50:9:50:13 | *copy2 |

cpp/ql/test/query-tests/Security/CWE/CWE-319/UseOfHttp/UseOfHttp.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
edges
22
| test.cpp:11:26:11:28 | *url | test.cpp:15:30:15:32 | *url |
3+
| test.cpp:24:13:24:17 | **url_g | test.cpp:24:13:24:17 | **url_g |
34
| test.cpp:24:13:24:17 | **url_g | test.cpp:38:11:38:15 | *url_g |
45
| test.cpp:24:21:24:40 | *http://example.com | test.cpp:24:13:24:17 | **url_g |
56
| test.cpp:28:10:28:29 | *http://example.com | test.cpp:11:26:11:28 | *url |

cpp/ql/test/query-tests/Security/CWE/CWE-497/SAMATE/PotentiallyExposedSystemData.expected

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
edges
2+
| tests.c:7:6:7:14 | *std_files | tests.c:7:6:7:14 | *std_files |
3+
| tests.c:7:6:7:14 | *std_files | tests.c:70:70:70:77 | *password |
4+
| tests.c:57:21:57:28 | *password | tests.c:7:6:7:14 | *std_files |
25
| tests.c:57:21:57:28 | *password | tests.c:70:70:70:77 | *password |
36
nodes
7+
| tests.c:7:6:7:14 | *std_files | semmle.label | *std_files |
48
| tests.c:57:21:57:28 | *password | semmle.label | *password |
59
| tests.c:70:70:70:77 | *password | semmle.label | *password |
610
subpaths

cpp/ql/test/query-tests/Security/CWE/CWE-497/semmle/tests/ExposedSystemData.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
edges
2+
| tests2.cpp:50:13:50:19 | **global1 | tests2.cpp:50:13:50:19 | **global1 |
23
| tests2.cpp:50:13:50:19 | **global1 | tests2.cpp:82:14:82:20 | *global1 |
34
| tests2.cpp:50:23:50:43 | *call to mysql_get_client_info | tests2.cpp:50:13:50:19 | **global1 |
45
| tests2.cpp:78:18:78:38 | *call to mysql_get_client_info | tests2.cpp:81:14:81:19 | *buffer |

cpp/ql/test/query-tests/Security/CWE/CWE-497/semmle/tests/PotentiallyExposedSystemData.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
edges
2+
| tests.cpp:62:7:62:18 | **global_token | tests.cpp:62:7:62:18 | **global_token |
23
| tests.cpp:62:7:62:18 | **global_token | tests.cpp:71:27:71:38 | *global_token |
34
| tests.cpp:62:7:62:18 | **global_token | tests.cpp:73:27:73:31 | *maybe |
45
| tests.cpp:62:22:62:27 | *call to getenv | tests.cpp:62:7:62:18 | **global_token |

cpp/ql/test/query-tests/Security/CWE/CWE-611/XXE.expected

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@ edges
33
| tests2.cpp:33:17:33:31 | call to SAXParser | tests2.cpp:37:2:37:2 | *p |
44
| tests2.cpp:49:12:49:12 | call to SAXParser | tests2.cpp:51:2:51:2 | *p |
55
| tests3.cpp:23:21:23:53 | *call to createXMLReader | tests3.cpp:25:2:25:2 | *p |
6+
| tests3.cpp:35:16:35:20 | **p_3_3 | tests3.cpp:35:16:35:20 | **p_3_3 |
67
| tests3.cpp:35:16:35:20 | **p_3_3 | tests3.cpp:38:2:38:6 | *p_3_3 |
78
| tests3.cpp:35:24:35:56 | *call to createXMLReader | tests3.cpp:35:16:35:20 | **p_3_3 |
9+
| tests3.cpp:48:16:48:20 | **p_3_5 | tests3.cpp:48:16:48:20 | **p_3_5 |
810
| tests3.cpp:48:16:48:20 | **p_3_5 | tests3.cpp:56:2:56:6 | *p_3_5 |
911
| tests3.cpp:48:24:48:56 | *call to createXMLReader | tests3.cpp:48:16:48:20 | **p_3_5 |
1012
| tests3.cpp:60:21:60:53 | *call to createXMLReader | tests3.cpp:63:2:63:2 | *p |
1113
| tests3.cpp:67:21:67:53 | *call to createXMLReader | tests3.cpp:70:2:70:2 | *p |
1214
| tests5.cpp:27:25:27:38 | *call to createLSParser | tests5.cpp:29:2:29:2 | *p |
1315
| tests5.cpp:40:25:40:38 | *call to createLSParser | tests5.cpp:43:2:43:2 | *p |
1416
| tests5.cpp:55:25:55:38 | *call to createLSParser | tests5.cpp:59:2:59:2 | *p |
17+
| tests5.cpp:63:21:63:24 | **g_p2 | tests5.cpp:63:21:63:24 | **g_p2 |
1518
| tests5.cpp:63:21:63:24 | **g_p2 | tests5.cpp:77:2:77:5 | *g_p2 |
1619
| tests5.cpp:70:17:70:30 | *call to createLSParser | tests5.cpp:63:21:63:24 | **g_p2 |
1720
| tests5.cpp:81:25:81:38 | *call to createLSParser | tests5.cpp:83:2:83:2 | *p |

0 commit comments

Comments
 (0)