Skip to content

Commit 7eb5e18

Browse files
committed
C++: Add empty provenance column to expected files.
1 parent 35a3aa0 commit 7eb5e18

File tree

46 files changed

+2271
-2271
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2271
-2271
lines changed

cpp/ql/test/experimental/query-tests/Security/CWE/CWE-078/WordexpTainted.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
edges
2-
| test.cpp:22:27:22:30 | **argv | test.cpp:29:13:29:20 | *filePath |
2+
| test.cpp:22:27:22:30 | **argv | test.cpp:29:13:29:20 | *filePath | provenance | |
33
nodes
44
| test.cpp:22:27:22:30 | **argv | semmle.label | **argv |
55
| test.cpp:29:13:29:20 | *filePath | semmle.label | *filePath |

cpp/ql/test/experimental/query-tests/Security/CWE/CWE-190/AllocMultiplicationOverflow/AllocMultiplicationOverflow.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
edges
2-
| test.cpp:22:17:22:21 | ... * ... | test.cpp:23:33:23:37 | size1 |
3-
| test.cpp:37:24:37:27 | size | test.cpp:37:46:37:49 | size |
4-
| test.cpp:45:36:45:40 | ... * ... | test.cpp:37:24:37:27 | size |
2+
| test.cpp:22:17:22:21 | ... * ... | test.cpp:23:33:23:37 | size1 | provenance | |
3+
| test.cpp:37:24:37:27 | size | test.cpp:37:46:37:49 | size | provenance | |
4+
| test.cpp:45:36:45:40 | ... * ... | test.cpp:37:24:37:27 | size | provenance | |
55
nodes
66
| test.cpp:13:33:13:37 | ... * ... | semmle.label | ... * ... |
77
| test.cpp:15:31:15:35 | ... * ... | semmle.label | ... * ... |

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

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
edges
2-
| test.cpp:4:17:4:22 | call to malloc | test.cpp:6:9:6:11 | arr |
3-
| test.cpp:4:17:4:22 | call to malloc | test.cpp:10:9:10:11 | arr |
4-
| test.cpp:19:9:19:16 | *mk_array [p] | test.cpp:28:19:28:26 | call to mk_array [p] |
5-
| test.cpp:19:9:19:16 | *mk_array [p] | test.cpp:50:18:50:25 | call to mk_array [p] |
6-
| test.cpp:21:5:21:7 | *arr [post update] [p] | test.cpp:22:5:22:7 | *arr [p] |
7-
| test.cpp:21:5:21:24 | ... = ... | test.cpp:21:5:21:7 | *arr [post update] [p] |
8-
| test.cpp:21:13:21:18 | call to malloc | test.cpp:21:5:21:24 | ... = ... |
9-
| test.cpp:22:5:22:7 | *arr [p] | test.cpp:19:9:19:16 | *mk_array [p] |
10-
| test.cpp:28:19:28:26 | call to mk_array [p] | test.cpp:31:9:31:11 | *arr [p] |
11-
| test.cpp:28:19:28:26 | call to mk_array [p] | test.cpp:35:9:35:11 | *arr [p] |
12-
| test.cpp:31:9:31:11 | *arr [p] | test.cpp:31:13:31:13 | p |
13-
| test.cpp:35:9:35:11 | *arr [p] | test.cpp:35:13:35:13 | p |
14-
| test.cpp:39:27:39:29 | arr [p] | test.cpp:41:9:41:11 | *arr [p] |
15-
| test.cpp:39:27:39:29 | arr [p] | test.cpp:45:9:45:11 | *arr [p] |
16-
| test.cpp:41:9:41:11 | *arr [p] | test.cpp:41:13:41:13 | p |
17-
| test.cpp:45:9:45:11 | *arr [p] | test.cpp:45:13:45:13 | p |
18-
| test.cpp:50:18:50:25 | call to mk_array [p] | test.cpp:39:27:39:29 | arr [p] |
19-
| test.cpp:55:5:55:7 | *arr [post update] [p] | test.cpp:56:5:56:7 | *arr [p] |
20-
| test.cpp:55:5:55:24 | ... = ... | test.cpp:55:5:55:7 | *arr [post update] [p] |
21-
| test.cpp:55:13:55:18 | call to malloc | test.cpp:55:5:55:24 | ... = ... |
22-
| test.cpp:56:5:56:7 | *arr [p] | test.cpp:59:9:59:11 | *arr [p] |
23-
| test.cpp:56:5:56:7 | *arr [p] | test.cpp:63:9:63:11 | *arr [p] |
24-
| test.cpp:59:9:59:11 | *arr [p] | test.cpp:59:13:59:13 | p |
25-
| test.cpp:63:9:63:11 | *arr [p] | test.cpp:63:13:63:13 | p |
26-
| test.cpp:67:10:67:19 | **mk_array_p [p] | test.cpp:76:20:76:29 | *call to mk_array_p [p] |
27-
| test.cpp:67:10:67:19 | **mk_array_p [p] | test.cpp:98:18:98:27 | *call to mk_array_p [p] |
28-
| test.cpp:69:5:69:7 | *arr [post update] [p] | test.cpp:70:5:70:7 | *arr [p] |
29-
| test.cpp:69:5:69:25 | ... = ... | test.cpp:69:5:69:7 | *arr [post update] [p] |
30-
| test.cpp:69:14:69:19 | call to malloc | test.cpp:69:5:69:25 | ... = ... |
31-
| test.cpp:70:5:70:7 | *arr [p] | test.cpp:67:10:67:19 | **mk_array_p [p] |
32-
| test.cpp:76:20:76:29 | *call to mk_array_p [p] | test.cpp:79:9:79:11 | *arr [p] |
33-
| test.cpp:76:20:76:29 | *call to mk_array_p [p] | test.cpp:83:9:83:11 | *arr [p] |
34-
| test.cpp:79:9:79:11 | *arr [p] | test.cpp:79:14:79:14 | p |
35-
| test.cpp:83:9:83:11 | *arr [p] | test.cpp:83:14:83:14 | p |
36-
| test.cpp:87:28:87:30 | *arr [p] | test.cpp:89:9:89:11 | *arr [p] |
37-
| test.cpp:87:28:87:30 | *arr [p] | test.cpp:93:9:93:11 | *arr [p] |
38-
| test.cpp:89:9:89:11 | *arr [p] | test.cpp:89:14:89:14 | p |
39-
| test.cpp:93:9:93:11 | *arr [p] | test.cpp:93:14:93:14 | p |
40-
| test.cpp:98:18:98:27 | *call to mk_array_p [p] | test.cpp:87:28:87:30 | *arr [p] |
2+
| test.cpp:4:17:4:22 | call to malloc | test.cpp:6:9:6:11 | arr | provenance | |
3+
| test.cpp:4:17:4:22 | call to malloc | test.cpp:10:9:10:11 | arr | provenance | |
4+
| test.cpp:19:9:19:16 | *mk_array [p] | test.cpp:28:19:28:26 | call to mk_array [p] | provenance | |
5+
| test.cpp:19:9:19:16 | *mk_array [p] | test.cpp:50:18:50:25 | call to mk_array [p] | provenance | |
6+
| test.cpp:21:5:21:7 | *arr [post update] [p] | test.cpp:22:5:22:7 | *arr [p] | provenance | |
7+
| test.cpp:21:5:21:24 | ... = ... | test.cpp:21:5:21:7 | *arr [post update] [p] | provenance | |
8+
| test.cpp:21:13:21:18 | call to malloc | test.cpp:21:5:21:24 | ... = ... | provenance | |
9+
| test.cpp:22:5:22:7 | *arr [p] | test.cpp:19:9:19:16 | *mk_array [p] | provenance | |
10+
| test.cpp:28:19:28:26 | call to mk_array [p] | test.cpp:31:9:31:11 | *arr [p] | provenance | |
11+
| test.cpp:28:19:28:26 | call to mk_array [p] | test.cpp:35:9:35:11 | *arr [p] | provenance | |
12+
| test.cpp:31:9:31:11 | *arr [p] | test.cpp:31:13:31:13 | p | provenance | |
13+
| test.cpp:35:9:35:11 | *arr [p] | test.cpp:35:13:35:13 | p | provenance | |
14+
| test.cpp:39:27:39:29 | arr [p] | test.cpp:41:9:41:11 | *arr [p] | provenance | |
15+
| test.cpp:39:27:39:29 | arr [p] | test.cpp:45:9:45:11 | *arr [p] | provenance | |
16+
| test.cpp:41:9:41:11 | *arr [p] | test.cpp:41:13:41:13 | p | provenance | |
17+
| test.cpp:45:9:45:11 | *arr [p] | test.cpp:45:13:45:13 | p | provenance | |
18+
| test.cpp:50:18:50:25 | call to mk_array [p] | test.cpp:39:27:39:29 | arr [p] | provenance | |
19+
| test.cpp:55:5:55:7 | *arr [post update] [p] | test.cpp:56:5:56:7 | *arr [p] | provenance | |
20+
| test.cpp:55:5:55:24 | ... = ... | test.cpp:55:5:55:7 | *arr [post update] [p] | provenance | |
21+
| test.cpp:55:13:55:18 | call to malloc | test.cpp:55:5:55:24 | ... = ... | provenance | |
22+
| test.cpp:56:5:56:7 | *arr [p] | test.cpp:59:9:59:11 | *arr [p] | provenance | |
23+
| test.cpp:56:5:56:7 | *arr [p] | test.cpp:63:9:63:11 | *arr [p] | provenance | |
24+
| test.cpp:59:9:59:11 | *arr [p] | test.cpp:59:13:59:13 | p | provenance | |
25+
| test.cpp:63:9:63:11 | *arr [p] | test.cpp:63:13:63:13 | p | provenance | |
26+
| test.cpp:67:10:67:19 | **mk_array_p [p] | test.cpp:76:20:76:29 | *call to mk_array_p [p] | provenance | |
27+
| test.cpp:67:10:67:19 | **mk_array_p [p] | test.cpp:98:18:98:27 | *call to mk_array_p [p] | provenance | |
28+
| test.cpp:69:5:69:7 | *arr [post update] [p] | test.cpp:70:5:70:7 | *arr [p] | provenance | |
29+
| test.cpp:69:5:69:25 | ... = ... | test.cpp:69:5:69:7 | *arr [post update] [p] | provenance | |
30+
| test.cpp:69:14:69:19 | call to malloc | test.cpp:69:5:69:25 | ... = ... | provenance | |
31+
| test.cpp:70:5:70:7 | *arr [p] | test.cpp:67:10:67:19 | **mk_array_p [p] | provenance | |
32+
| test.cpp:76:20:76:29 | *call to mk_array_p [p] | test.cpp:79:9:79:11 | *arr [p] | provenance | |
33+
| test.cpp:76:20:76:29 | *call to mk_array_p [p] | test.cpp:83:9:83:11 | *arr [p] | provenance | |
34+
| test.cpp:79:9:79:11 | *arr [p] | test.cpp:79:14:79:14 | p | provenance | |
35+
| test.cpp:83:9:83:11 | *arr [p] | test.cpp:83:14:83:14 | p | provenance | |
36+
| test.cpp:87:28:87:30 | *arr [p] | test.cpp:89:9:89:11 | *arr [p] | provenance | |
37+
| test.cpp:87:28:87:30 | *arr [p] | test.cpp:93:9:93:11 | *arr [p] | provenance | |
38+
| test.cpp:89:9:89:11 | *arr [p] | test.cpp:89:14:89:14 | p | provenance | |
39+
| test.cpp:93:9:93:11 | *arr [p] | test.cpp:93:14:93:14 | p | provenance | |
40+
| test.cpp:98:18:98:27 | *call to mk_array_p [p] | test.cpp:87:28:87:30 | *arr [p] | provenance | |
4141
nodes
4242
| test.cpp:4:17:4:22 | call to malloc | semmle.label | call to malloc |
4343
| test.cpp:6:9:6:11 | arr | semmle.label | arr |

cpp/ql/test/experimental/query-tests/Security/CWE/CWE-193/constant-size/ConstantSizeArrayOffByOne.expected

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,74 @@
11
edges
2-
| test.cpp:34:10:34:12 | buf | test.cpp:34:5:34:24 | access to array |
3-
| test.cpp:35:10:35:12 | buf | test.cpp:35:5:35:22 | access to array |
4-
| test.cpp:36:10:36:12 | buf | test.cpp:36:5:36:24 | access to array |
5-
| test.cpp:39:14:39:16 | buf | test.cpp:39:9:39:19 | access to array |
6-
| test.cpp:43:14:43:16 | buf | test.cpp:43:9:43:19 | access to array |
7-
| test.cpp:48:10:48:12 | buf | test.cpp:48:5:48:24 | access to array |
8-
| test.cpp:49:10:49:12 | buf | test.cpp:49:5:49:22 | access to array |
9-
| test.cpp:50:10:50:12 | buf | test.cpp:50:5:50:24 | access to array |
10-
| test.cpp:53:14:53:16 | buf | test.cpp:53:9:53:19 | access to array |
11-
| test.cpp:57:14:57:16 | buf | test.cpp:57:9:57:19 | access to array |
12-
| test.cpp:61:14:61:16 | buf | test.cpp:61:9:61:19 | access to array |
13-
| test.cpp:70:33:70:33 | p | test.cpp:71:5:71:17 | access to array |
14-
| test.cpp:70:33:70:33 | p | test.cpp:72:5:72:15 | access to array |
15-
| test.cpp:76:26:76:46 | & ... | test.cpp:66:32:66:32 | p |
16-
| test.cpp:76:32:76:34 | buf | test.cpp:76:26:76:46 | & ... |
17-
| test.cpp:77:26:77:44 | & ... | test.cpp:66:32:66:32 | p |
18-
| test.cpp:77:32:77:34 | buf | test.cpp:77:26:77:44 | & ... |
19-
| test.cpp:79:27:79:34 | buf | test.cpp:70:33:70:33 | p |
20-
| test.cpp:79:32:79:34 | buf | test.cpp:79:27:79:34 | buf |
21-
| test.cpp:85:34:85:36 | buf | test.cpp:87:5:87:31 | access to array |
22-
| test.cpp:85:34:85:36 | buf | test.cpp:88:5:88:27 | access to array |
23-
| test.cpp:96:13:96:15 | arr | test.cpp:96:13:96:18 | access to array |
24-
| test.cpp:111:17:111:19 | arr | test.cpp:111:17:111:22 | access to array |
25-
| test.cpp:111:17:111:19 | arr | test.cpp:115:35:115:40 | access to array |
26-
| test.cpp:111:17:111:19 | arr | test.cpp:119:17:119:22 | access to array |
27-
| test.cpp:115:35:115:37 | arr | test.cpp:111:17:111:22 | access to array |
28-
| test.cpp:115:35:115:37 | arr | test.cpp:115:35:115:40 | access to array |
29-
| test.cpp:115:35:115:37 | arr | test.cpp:119:17:119:22 | access to array |
30-
| test.cpp:119:17:119:19 | arr | test.cpp:111:17:111:22 | access to array |
31-
| test.cpp:119:17:119:19 | arr | test.cpp:115:35:115:40 | access to array |
32-
| test.cpp:119:17:119:19 | arr | test.cpp:119:17:119:22 | access to array |
33-
| test.cpp:128:9:128:11 | arr | test.cpp:128:9:128:14 | access to array |
34-
| test.cpp:134:25:134:27 | arr | test.cpp:136:9:136:16 | ... += ... |
35-
| test.cpp:136:9:136:16 | ... += ... | test.cpp:138:13:138:15 | arr |
36-
| test.cpp:143:18:143:21 | asdf | test.cpp:134:25:134:27 | arr |
37-
| test.cpp:143:18:143:21 | asdf | test.cpp:143:18:143:21 | asdf |
38-
| test.cpp:146:26:146:26 | *p | test.cpp:147:4:147:9 | -- ... |
39-
| test.cpp:156:12:156:14 | buf | test.cpp:156:12:156:18 | ... + ... |
40-
| test.cpp:156:12:156:18 | ... + ... | test.cpp:158:17:158:18 | *& ... |
41-
| test.cpp:158:17:158:18 | *& ... | test.cpp:146:26:146:26 | *p |
42-
| test.cpp:218:23:218:28 | buffer | test.cpp:220:5:220:11 | access to array |
43-
| test.cpp:218:23:218:28 | buffer | test.cpp:221:5:221:11 | access to array |
44-
| test.cpp:229:25:229:29 | array | test.cpp:231:5:231:10 | access to array |
45-
| test.cpp:229:25:229:29 | array | test.cpp:232:5:232:10 | access to array |
46-
| test.cpp:245:30:245:30 | p | test.cpp:261:27:261:30 | access to array |
47-
| test.cpp:245:30:245:30 | p | test.cpp:261:27:261:30 | access to array |
48-
| test.cpp:274:14:274:20 | buffer3 | test.cpp:245:30:245:30 | p |
49-
| test.cpp:274:14:274:20 | buffer3 | test.cpp:274:14:274:20 | buffer3 |
50-
| test.cpp:277:35:277:35 | p | test.cpp:278:14:278:14 | p |
51-
| test.cpp:278:14:278:14 | p | test.cpp:245:30:245:30 | p |
52-
| test.cpp:283:19:283:25 | buffer1 | test.cpp:277:35:277:35 | p |
53-
| test.cpp:283:19:283:25 | buffer1 | test.cpp:283:19:283:25 | buffer1 |
54-
| test.cpp:286:19:286:25 | buffer2 | test.cpp:277:35:277:35 | p |
55-
| test.cpp:286:19:286:25 | buffer2 | test.cpp:286:19:286:25 | buffer2 |
56-
| test.cpp:289:19:289:25 | buffer3 | test.cpp:277:35:277:35 | p |
57-
| test.cpp:289:19:289:25 | buffer3 | test.cpp:289:19:289:25 | buffer3 |
58-
| test.cpp:292:25:292:27 | arr | test.cpp:299:16:299:21 | access to array |
59-
| test.cpp:292:25:292:27 | arr | test.cpp:299:16:299:21 | access to array |
60-
| test.cpp:306:20:306:23 | arr1 | test.cpp:292:25:292:27 | arr |
61-
| test.cpp:306:20:306:23 | arr1 | test.cpp:306:20:306:23 | arr1 |
62-
| test.cpp:309:20:309:23 | arr2 | test.cpp:292:25:292:27 | arr |
63-
| test.cpp:309:20:309:23 | arr2 | test.cpp:309:20:309:23 | arr2 |
64-
| test.cpp:319:19:319:22 | temp | test.cpp:319:19:319:27 | ... + ... |
65-
| test.cpp:319:19:319:22 | temp | test.cpp:324:23:324:32 | ... + ... |
66-
| test.cpp:319:19:319:27 | ... + ... | test.cpp:325:24:325:26 | end |
67-
| test.cpp:322:19:322:22 | temp | test.cpp:322:19:322:27 | ... + ... |
68-
| test.cpp:322:19:322:22 | temp | test.cpp:324:23:324:32 | ... + ... |
69-
| test.cpp:322:19:322:27 | ... + ... | test.cpp:325:24:325:26 | end |
70-
| test.cpp:324:23:324:26 | temp | test.cpp:324:23:324:32 | ... + ... |
71-
| test.cpp:324:23:324:32 | ... + ... | test.cpp:325:15:325:19 | temp2 |
2+
| test.cpp:34:10:34:12 | buf | test.cpp:34:5:34:24 | access to array | provenance | |
3+
| test.cpp:35:10:35:12 | buf | test.cpp:35:5:35:22 | access to array | provenance | |
4+
| test.cpp:36:10:36:12 | buf | test.cpp:36:5:36:24 | access to array | provenance | |
5+
| test.cpp:39:14:39:16 | buf | test.cpp:39:9:39:19 | access to array | provenance | |
6+
| test.cpp:43:14:43:16 | buf | test.cpp:43:9:43:19 | access to array | provenance | |
7+
| test.cpp:48:10:48:12 | buf | test.cpp:48:5:48:24 | access to array | provenance | |
8+
| test.cpp:49:10:49:12 | buf | test.cpp:49:5:49:22 | access to array | provenance | |
9+
| test.cpp:50:10:50:12 | buf | test.cpp:50:5:50:24 | access to array | provenance | |
10+
| test.cpp:53:14:53:16 | buf | test.cpp:53:9:53:19 | access to array | provenance | |
11+
| test.cpp:57:14:57:16 | buf | test.cpp:57:9:57:19 | access to array | provenance | |
12+
| test.cpp:61:14:61:16 | buf | test.cpp:61:9:61:19 | access to array | provenance | |
13+
| test.cpp:70:33:70:33 | p | test.cpp:71:5:71:17 | access to array | provenance | |
14+
| test.cpp:70:33:70:33 | p | test.cpp:72:5:72:15 | access to array | provenance | |
15+
| test.cpp:76:26:76:46 | & ... | test.cpp:66:32:66:32 | p | provenance | |
16+
| test.cpp:76:32:76:34 | buf | test.cpp:76:26:76:46 | & ... | provenance | |
17+
| test.cpp:77:26:77:44 | & ... | test.cpp:66:32:66:32 | p | provenance | |
18+
| test.cpp:77:32:77:34 | buf | test.cpp:77:26:77:44 | & ... | provenance | |
19+
| test.cpp:79:27:79:34 | buf | test.cpp:70:33:70:33 | p | provenance | |
20+
| test.cpp:79:32:79:34 | buf | test.cpp:79:27:79:34 | buf | provenance | |
21+
| test.cpp:85:34:85:36 | buf | test.cpp:87:5:87:31 | access to array | provenance | |
22+
| test.cpp:85:34:85:36 | buf | test.cpp:88:5:88:27 | access to array | provenance | |
23+
| test.cpp:96:13:96:15 | arr | test.cpp:96:13:96:18 | access to array | provenance | |
24+
| test.cpp:111:17:111:19 | arr | test.cpp:111:17:111:22 | access to array | provenance | |
25+
| test.cpp:111:17:111:19 | arr | test.cpp:115:35:115:40 | access to array | provenance | |
26+
| test.cpp:111:17:111:19 | arr | test.cpp:119:17:119:22 | access to array | provenance | |
27+
| test.cpp:115:35:115:37 | arr | test.cpp:111:17:111:22 | access to array | provenance | |
28+
| test.cpp:115:35:115:37 | arr | test.cpp:115:35:115:40 | access to array | provenance | |
29+
| test.cpp:115:35:115:37 | arr | test.cpp:119:17:119:22 | access to array | provenance | |
30+
| test.cpp:119:17:119:19 | arr | test.cpp:111:17:111:22 | access to array | provenance | |
31+
| test.cpp:119:17:119:19 | arr | test.cpp:115:35:115:40 | access to array | provenance | |
32+
| test.cpp:119:17:119:19 | arr | test.cpp:119:17:119:22 | access to array | provenance | |
33+
| test.cpp:128:9:128:11 | arr | test.cpp:128:9:128:14 | access to array | provenance | |
34+
| test.cpp:134:25:134:27 | arr | test.cpp:136:9:136:16 | ... += ... | provenance | |
35+
| test.cpp:136:9:136:16 | ... += ... | test.cpp:138:13:138:15 | arr | provenance | |
36+
| test.cpp:143:18:143:21 | asdf | test.cpp:134:25:134:27 | arr | provenance | |
37+
| test.cpp:143:18:143:21 | asdf | test.cpp:143:18:143:21 | asdf | provenance | |
38+
| test.cpp:146:26:146:26 | *p | test.cpp:147:4:147:9 | -- ... | provenance | |
39+
| test.cpp:156:12:156:14 | buf | test.cpp:156:12:156:18 | ... + ... | provenance | |
40+
| test.cpp:156:12:156:18 | ... + ... | test.cpp:158:17:158:18 | *& ... | provenance | |
41+
| test.cpp:158:17:158:18 | *& ... | test.cpp:146:26:146:26 | *p | provenance | |
42+
| test.cpp:218:23:218:28 | buffer | test.cpp:220:5:220:11 | access to array | provenance | |
43+
| test.cpp:218:23:218:28 | buffer | test.cpp:221:5:221:11 | access to array | provenance | |
44+
| test.cpp:229:25:229:29 | array | test.cpp:231:5:231:10 | access to array | provenance | |
45+
| test.cpp:229:25:229:29 | array | test.cpp:232:5:232:10 | access to array | provenance | |
46+
| test.cpp:245:30:245:30 | p | test.cpp:261:27:261:30 | access to array | provenance | |
47+
| test.cpp:245:30:245:30 | p | test.cpp:261:27:261:30 | access to array | provenance | |
48+
| test.cpp:274:14:274:20 | buffer3 | test.cpp:245:30:245:30 | p | provenance | |
49+
| test.cpp:274:14:274:20 | buffer3 | test.cpp:274:14:274:20 | buffer3 | provenance | |
50+
| test.cpp:277:35:277:35 | p | test.cpp:278:14:278:14 | p | provenance | |
51+
| test.cpp:278:14:278:14 | p | test.cpp:245:30:245:30 | p | provenance | |
52+
| test.cpp:283:19:283:25 | buffer1 | test.cpp:277:35:277:35 | p | provenance | |
53+
| test.cpp:283:19:283:25 | buffer1 | test.cpp:283:19:283:25 | buffer1 | provenance | |
54+
| test.cpp:286:19:286:25 | buffer2 | test.cpp:277:35:277:35 | p | provenance | |
55+
| test.cpp:286:19:286:25 | buffer2 | test.cpp:286:19:286:25 | buffer2 | provenance | |
56+
| test.cpp:289:19:289:25 | buffer3 | test.cpp:277:35:277:35 | p | provenance | |
57+
| test.cpp:289:19:289:25 | buffer3 | test.cpp:289:19:289:25 | buffer3 | provenance | |
58+
| test.cpp:292:25:292:27 | arr | test.cpp:299:16:299:21 | access to array | provenance | |
59+
| test.cpp:292:25:292:27 | arr | test.cpp:299:16:299:21 | access to array | provenance | |
60+
| test.cpp:306:20:306:23 | arr1 | test.cpp:292:25:292:27 | arr | provenance | |
61+
| test.cpp:306:20:306:23 | arr1 | test.cpp:306:20:306:23 | arr1 | provenance | |
62+
| test.cpp:309:20:309:23 | arr2 | test.cpp:292:25:292:27 | arr | provenance | |
63+
| test.cpp:309:20:309:23 | arr2 | test.cpp:309:20:309:23 | arr2 | provenance | |
64+
| test.cpp:319:19:319:22 | temp | test.cpp:319:19:319:27 | ... + ... | provenance | |
65+
| test.cpp:319:19:319:22 | temp | test.cpp:324:23:324:32 | ... + ... | provenance | |
66+
| test.cpp:319:19:319:27 | ... + ... | test.cpp:325:24:325:26 | end | provenance | |
67+
| test.cpp:322:19:322:22 | temp | test.cpp:322:19:322:27 | ... + ... | provenance | |
68+
| test.cpp:322:19:322:22 | temp | test.cpp:324:23:324:32 | ... + ... | provenance | |
69+
| test.cpp:322:19:322:27 | ... + ... | test.cpp:325:24:325:26 | end | provenance | |
70+
| test.cpp:324:23:324:26 | temp | test.cpp:324:23:324:32 | ... + ... | provenance | |
71+
| test.cpp:324:23:324:32 | ... + ... | test.cpp:325:15:325:19 | temp2 | provenance | |
7272
nodes
7373
| test.cpp:34:5:34:24 | access to array | semmle.label | access to array |
7474
| test.cpp:34:10:34:12 | buf | semmle.label | buf |

cpp/ql/test/experimental/query-tests/Security/CWE/CWE-359/semmle/tests/PrivateCleartextWrite.expected

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
edges
2-
| test.cpp:45:18:45:23 | buffer | test.cpp:45:7:45:10 | *func |
3-
| test.cpp:74:24:74:30 | medical | test.cpp:78:24:78:27 | temp |
4-
| test.cpp:74:24:74:30 | medical | test.cpp:81:22:81:28 | medical |
5-
| test.cpp:77:16:77:22 | medical | test.cpp:78:24:78:27 | temp |
6-
| test.cpp:77:16:77:22 | medical | test.cpp:81:22:81:28 | medical |
7-
| test.cpp:81:17:81:20 | call to func | test.cpp:82:24:82:28 | buff5 |
8-
| test.cpp:81:22:81:28 | medical | test.cpp:45:18:45:23 | buffer |
9-
| test.cpp:81:22:81:28 | medical | test.cpp:81:17:81:20 | call to func |
10-
| test.cpp:96:37:96:46 | theZipcode | test.cpp:99:42:99:51 | theZipcode |
11-
| test.cpp:99:61:99:70 | theZipcode | test.cpp:99:42:99:51 | theZipcode |
2+
| test.cpp:45:18:45:23 | buffer | test.cpp:45:7:45:10 | *func | provenance | |
3+
| test.cpp:74:24:74:30 | medical | test.cpp:78:24:78:27 | temp | provenance | |
4+
| test.cpp:74:24:74:30 | medical | test.cpp:81:22:81:28 | medical | provenance | |
5+
| test.cpp:77:16:77:22 | medical | test.cpp:78:24:78:27 | temp | provenance | |
6+
| test.cpp:77:16:77:22 | medical | test.cpp:81:22:81:28 | medical | provenance | |
7+
| test.cpp:81:17:81:20 | call to func | test.cpp:82:24:82:28 | buff5 | provenance | |
8+
| test.cpp:81:22:81:28 | medical | test.cpp:45:18:45:23 | buffer | provenance | |
9+
| test.cpp:81:22:81:28 | medical | test.cpp:81:17:81:20 | call to func | provenance | |
10+
| test.cpp:96:37:96:46 | theZipcode | test.cpp:99:42:99:51 | theZipcode | provenance | |
11+
| test.cpp:99:61:99:70 | theZipcode | test.cpp:99:42:99:51 | theZipcode | provenance | |
1212
nodes
1313
| test.cpp:45:7:45:10 | *func | semmle.label | *func |
1414
| test.cpp:45:18:45:23 | buffer | semmle.label | buffer |

0 commit comments

Comments
 (0)