Skip to content

Commit 5dbdc9f

Browse files
committed
Update expected test output
1 parent 6b53819 commit 5dbdc9f

File tree

50 files changed

+2631
-1689
lines changed

Some content is hidden

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

50 files changed

+2631
-1689
lines changed

cpp/ql/test/experimental/query-tests/Security/CWE/CWE-409/DecompressionBombs/DecompressionBombs.expected

Lines changed: 90 additions & 8 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ irFlow
188188
| flowOut.cpp:5:16:5:21 | call to source | flowOut.cpp:61:8:61:11 | access to array |
189189
| flowOut.cpp:8:16:8:23 | call to source | flowOut.cpp:73:8:73:9 | * ... |
190190
| flowOut.cpp:8:16:8:23 | call to source | flowOut.cpp:117:8:117:9 | * ... |
191+
| flowOut.cpp:84:18:84:23 | call to source | flowOut.cpp:85:8:85:9 | * ... |
191192
| flowOut.cpp:90:8:90:13 | call to source | flowOut.cpp:102:8:102:9 | * ... |
192193
| flowOut.cpp:131:15:131:20 | call to source | flowOut.cpp:146:8:146:10 | * ... |
193194
| flowOut.cpp:131:15:131:20 | call to source | flowOut.cpp:161:8:161:10 | * ... |
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
| flowOut.cpp:19:9:19:9 | x | Unexpected result: ir |
22
| flowOut.cpp:46:8:46:11 | access to array | Unexpected result: ir |
33
| flowOut.cpp:73:8:73:9 | * ... | Unexpected result: ir |
4-
| flowOut.cpp:85:13:85:32 | // $ ir MISSING: ast | Missing result: ir |
54
| flowOut.cpp:117:8:117:9 | * ... | Unexpected result: ir |
65
| flowOut.cpp:146:8:146:10 | * ... | Unexpected result: ir |
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
| A.cpp:65:14:65:14 | c | Unexpected result: ast |
2-
| A.cpp:74:14:74:14 | c | Unexpected result: ast |
1+

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

Lines changed: 156 additions & 200 deletions
Large diffs are not rendered by default.

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

Lines changed: 146 additions & 201 deletions
Large diffs are not rendered by default.

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

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,3 @@ WARNING: module 'DataFlow' has been deprecated and may be removed in future (tai
33
WARNING: module 'DataFlow' has been deprecated and may be removed in future (taint.ql:61,22-30)
44
WARNING: module 'DataFlow' has been deprecated and may be removed in future (taint.ql:68,25-33)
55
WARNING: module 'TaintTracking' has been deprecated and may be removed in future (taint.ql:73,20-33)
6-
| arrayassignment.cpp:66:12:66:31 | // $ ir MISSING: ast | Missing result: ir |
7-
| arrayassignment.cpp:67:18:67:28 | // $ ast,ir | Missing result: ir |
8-
| arrayassignment.cpp:110:19:110:38 | // $ ir MISSING: ast | Missing result: ir |
9-
| vector.cpp:52:12:52:30 | // $ ir MISSING:ast | Missing result: ir |
10-
| vector.cpp:53:15:53:33 | // $ ir MISSING:ast | Missing result: ir |
11-
| vector.cpp:54:15:54:31 | // $ SPURIOUS: ir | Fixed spurious result: ir |
12-
| vector.cpp:55:15:55:33 | // $ ir MISSING:ast | Missing result: ir |
13-
| vector.cpp:58:12:58:30 | // $ ir MISSING:ast | Missing result: ir |
14-
| vector.cpp:59:15:59:33 | // $ ir MISSING:ast | Missing result: ir |
15-
| vector.cpp:60:15:60:31 | // $ SPURIOUS: ir | Fixed spurious result: ir |
16-
| vector.cpp:61:15:61:33 | // $ ir MISSING:ast | Missing result: ir |
17-
| vector.cpp:64:12:64:30 | // $ ir MISSING:ast | Missing result: ir |
18-
| vector.cpp:65:15:65:33 | // $ ir MISSING:ast | Missing result: ir |
19-
| vector.cpp:66:15:66:33 | // $ ir MISSING:ast | Missing result: ir |
20-
| vector.cpp:67:15:67:33 | // $ ir MISSING:ast | Missing result: ir |
21-
| vector.cpp:75:12:75:30 | // $ ir MISSING:ast | Missing result: ir |
22-
| vector.cpp:76:22:76:40 | // $ ir MISSING:ast | Missing result: ir |
23-
| vector.cpp:97:12:97:30 | // $ ir MISSING:ast | Missing result: ir |
24-
| vector.cpp:98:18:98:36 | // $ ir MISSING:ast | Missing result: ir |
25-
| vector.cpp:99:18:99:36 | // $ ir MISSING:ast | Missing result: ir |
26-
| vector.cpp:100:18:100:36 | // $ ir MISSING:ast | Missing result: ir |
27-
| vector.cpp:171:19:171:37 | // $ ir MISSING:ast | Missing result: ir |
28-
| vector.cpp:180:19:180:37 | // $ ir MISSING:ast | Missing result: ir |
29-
| vector.cpp:201:19:201:37 | // $ ir MISSING:ast | Missing result: ir |
30-
| vector.cpp:212:22:212:41 | // $ ir MISSING: ast | Missing result: ir |
31-
| vector.cpp:290:12:290:18 | // $ ir | Missing result: ir |
32-
| vector.cpp:291:19:291:37 | // $ ir MISSING:ast | Missing result: ir |
33-
| vector.cpp:292:22:292:40 | // $ ir MISSING:ast | Missing result: ir |

cpp/ql/test/query-tests/Security/CWE/CWE-078/semmle/ExecTainted/ExecTainted.expected

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ edges
5151
| test.cpp:187:18:187:25 | *filename | test.cpp:187:11:187:15 | strncat output argument | provenance | TaintFunction |
5252
| test.cpp:188:11:188:17 | strncat output argument | test.cpp:186:19:186:25 | *command | provenance | |
5353
| test.cpp:188:11:188:17 | strncat output argument | test.cpp:186:19:186:25 | *command | provenance | |
54-
| test.cpp:188:11:188:17 | strncat output argument | test.cpp:186:19:186:25 | *command [Return] | provenance | |
55-
| test.cpp:188:11:188:17 | strncat output argument | test.cpp:186:19:186:25 | *command [Return] | provenance | |
54+
| test.cpp:188:11:188:17 | strncat output argument | test.cpp:186:19:186:25 | *command [Reverse] | provenance | |
55+
| test.cpp:188:11:188:17 | strncat output argument | test.cpp:186:19:186:25 | *command [Reverse] | provenance | |
5656
| test.cpp:188:20:188:24 | *flags | test.cpp:188:11:188:17 | strncat output argument | provenance | Config |
5757
| test.cpp:188:20:188:24 | *flags | test.cpp:188:11:188:17 | strncat output argument | provenance | TaintFunction |
5858
| test.cpp:194:9:194:16 | fread output argument | test.cpp:196:26:196:33 | *filename | provenance | |
@@ -127,8 +127,8 @@ nodes
127127
| test.cpp:183:32:183:38 | *command | semmle.label | *command |
128128
| test.cpp:186:19:186:25 | *command | semmle.label | *command |
129129
| test.cpp:186:19:186:25 | *command | semmle.label | *command |
130-
| test.cpp:186:19:186:25 | *command [Return] | semmle.label | *command [Return] |
131-
| test.cpp:186:19:186:25 | *command [Return] | semmle.label | *command [Return] |
130+
| test.cpp:186:19:186:25 | *command [Reverse] | semmle.label | *command [Reverse] |
131+
| test.cpp:186:19:186:25 | *command [Reverse] | semmle.label | *command [Reverse] |
132132
| test.cpp:186:47:186:54 | *filename | semmle.label | *filename |
133133
| test.cpp:187:11:187:15 | strncat output argument | semmle.label | strncat output argument |
134134
| test.cpp:187:11:187:15 | strncat output argument | semmle.label | strncat output argument |
@@ -155,8 +155,8 @@ nodes
155155
subpaths
156156
| test.cpp:196:26:196:33 | *filename | test.cpp:186:47:186:54 | *filename | test.cpp:186:19:186:25 | *command | test.cpp:196:10:196:16 | concat output argument |
157157
| test.cpp:196:26:196:33 | *filename | test.cpp:186:47:186:54 | *filename | test.cpp:186:19:186:25 | *command | test.cpp:196:10:196:16 | concat output argument |
158-
| test.cpp:196:26:196:33 | *filename | test.cpp:186:47:186:54 | *filename | test.cpp:186:19:186:25 | *command [Return] | test.cpp:196:10:196:16 | concat output argument |
159-
| test.cpp:196:26:196:33 | *filename | test.cpp:186:47:186:54 | *filename | test.cpp:186:19:186:25 | *command [Return] | test.cpp:196:10:196:16 | concat output argument |
158+
| test.cpp:196:26:196:33 | *filename | test.cpp:186:47:186:54 | *filename | test.cpp:186:19:186:25 | *command [Reverse] | test.cpp:196:10:196:16 | concat output argument |
159+
| test.cpp:196:26:196:33 | *filename | test.cpp:186:47:186:54 | *filename | test.cpp:186:19:186:25 | *command [Reverse] | test.cpp:196:10:196:16 | concat output argument |
160160
#select
161161
| test.cpp:23:12:23:19 | command1 | test.cpp:15:27:15:30 | **argv | test.cpp:23:12:23:19 | *command1 | This argument to an OS command is derived from $@, dangerously concatenated into $@, and then passed to system(string). | test.cpp:15:27:15:30 | **argv | user input (a command-line argument) | test.cpp:22:13:22:20 | sprintf output argument | sprintf output argument |
162162
| test.cpp:51:10:51:16 | command | test.cpp:47:21:47:26 | *call to getenv | test.cpp:51:10:51:16 | *command | This argument to an OS command is derived from $@, dangerously concatenated into $@, and then passed to system(string). | test.cpp:47:21:47:26 | *call to getenv | user input (an environment variable) | test.cpp:50:11:50:17 | sprintf output argument | sprintf output argument |

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ edges
5353
| test.cpp:228:27:228:54 | call to malloc | test.cpp:228:27:228:54 | call to malloc | provenance | |
5454
| test.cpp:228:27:228:54 | call to malloc | test.cpp:232:10:232:15 | buffer | provenance | |
5555
| test.cpp:235:40:235:45 | buffer | test.cpp:236:5:236:26 | ... = ... | provenance | |
56-
| test.cpp:236:5:236:9 | *p_str [Reverse] [string] | test.cpp:235:27:235:31 | *p_str [Return] [string] | provenance | |
56+
| test.cpp:236:5:236:9 | *p_str [post update] [string] | test.cpp:235:27:235:31 | *p_str [Reverse] [string] | provenance | |
5757
| test.cpp:236:5:236:9 | *p_str [post update] [string] | test.cpp:235:27:235:31 | *p_str [string] | provenance | |
58-
| test.cpp:236:5:236:9 | *p_str [post update] [string] | test.cpp:236:5:236:9 | *p_str [Reverse] [string] | provenance | |
5958
| test.cpp:236:5:236:26 | ... = ... | test.cpp:236:5:236:9 | *p_str [post update] [string] | provenance | |
6059
| test.cpp:241:20:241:38 | call to malloc | test.cpp:241:20:241:38 | call to malloc | provenance | |
6160
| test.cpp:241:20:241:38 | call to malloc | test.cpp:242:22:242:27 | buffer | provenance | |
@@ -130,10 +129,9 @@ nodes
130129
| test.cpp:228:27:228:54 | call to malloc | semmle.label | call to malloc |
131130
| test.cpp:228:27:228:54 | call to malloc | semmle.label | call to malloc |
132131
| test.cpp:232:10:232:15 | buffer | semmle.label | buffer |
133-
| test.cpp:235:27:235:31 | *p_str [Return] [string] | semmle.label | *p_str [Return] [string] |
132+
| test.cpp:235:27:235:31 | *p_str [Reverse] [string] | semmle.label | *p_str [Reverse] [string] |
134133
| test.cpp:235:27:235:31 | *p_str [string] | semmle.label | *p_str [string] |
135134
| test.cpp:235:40:235:45 | buffer | semmle.label | buffer |
136-
| test.cpp:236:5:236:9 | *p_str [Reverse] [string] | semmle.label | *p_str [Reverse] [string] |
137135
| test.cpp:236:5:236:9 | *p_str [post update] [string] | semmle.label | *p_str [post update] [string] |
138136
| test.cpp:236:5:236:26 | ... = ... | semmle.label | ... = ... |
139137
| test.cpp:241:20:241:38 | call to malloc | semmle.label | call to malloc |
@@ -154,7 +152,7 @@ nodes
154152
| test.cpp:264:13:264:30 | call to malloc | semmle.label | call to malloc |
155153
| test.cpp:266:12:266:12 | p | semmle.label | p |
156154
subpaths
157-
| test.cpp:242:22:242:27 | buffer | test.cpp:235:40:235:45 | buffer | test.cpp:235:27:235:31 | *p_str [Return] [string] | test.cpp:242:16:242:19 | set_string output argument [string] |
155+
| test.cpp:242:22:242:27 | buffer | test.cpp:235:40:235:45 | buffer | test.cpp:235:27:235:31 | *p_str [Reverse] [string] | test.cpp:242:16:242:19 | set_string output argument [string] |
158156
| test.cpp:242:22:242:27 | buffer | test.cpp:235:40:235:45 | buffer | test.cpp:235:27:235:31 | *p_str [string] | test.cpp:242:16:242:19 | set_string output argument [string] |
159157
#select
160158
| test.cpp:42:5:42:11 | call to strncpy | test.cpp:18:19:18:24 | call to malloc | test.cpp:42:18:42:23 | string | This write may overflow $@ by 1 element. | test.cpp:42:18:42:23 | string | string |

cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/tests/OverflowDestination.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edges
55
| overflowdestination.cpp:27:2:27:15 | *... = ... | overflowdestination.cpp:30:17:30:20 | *arg1 | provenance | |
66
| overflowdestination.cpp:43:8:43:10 | fgets output argument | overflowdestination.cpp:46:15:46:17 | *src | provenance | |
77
| overflowdestination.cpp:50:52:50:54 | *src | overflowdestination.cpp:50:52:50:54 | *src | provenance | |
8-
| overflowdestination.cpp:50:52:50:54 | *src | overflowdestination.cpp:50:52:50:54 | *src [Return] | provenance | DataFlowFunction |
8+
| overflowdestination.cpp:50:52:50:54 | *src | overflowdestination.cpp:50:52:50:54 | *src [Reverse] | provenance | DataFlowFunction |
99
| overflowdestination.cpp:50:52:50:54 | *src | overflowdestination.cpp:53:15:53:17 | *src | provenance | |
1010
| overflowdestination.cpp:57:52:57:54 | *src | overflowdestination.cpp:60:15:60:17 | *src | provenance | |
1111
| overflowdestination.cpp:60:15:60:17 | *src | overflowdestination.cpp:64:16:64:19 | *src2 | provenance | |
@@ -26,7 +26,7 @@ nodes
2626
| overflowdestination.cpp:46:15:46:17 | *src | semmle.label | *src |
2727
| overflowdestination.cpp:50:52:50:54 | *src | semmle.label | *src |
2828
| overflowdestination.cpp:50:52:50:54 | *src | semmle.label | *src |
29-
| overflowdestination.cpp:50:52:50:54 | *src [Return] | semmle.label | *src [Return] |
29+
| overflowdestination.cpp:50:52:50:54 | *src [Reverse] | semmle.label | *src [Reverse] |
3030
| overflowdestination.cpp:53:15:53:17 | *src | semmle.label | *src |
3131
| overflowdestination.cpp:57:52:57:54 | *src | semmle.label | *src |
3232
| overflowdestination.cpp:60:15:60:17 | *src | semmle.label | *src |
@@ -37,7 +37,7 @@ nodes
3737
| overflowdestination.cpp:76:30:76:32 | *src | semmle.label | *src |
3838
subpaths
3939
| overflowdestination.cpp:75:30:75:32 | *src | overflowdestination.cpp:50:52:50:54 | *src | overflowdestination.cpp:50:52:50:54 | *src | overflowdestination.cpp:75:30:75:32 | overflowdest_test2 output argument |
40-
| overflowdestination.cpp:75:30:75:32 | *src | overflowdestination.cpp:50:52:50:54 | *src | overflowdestination.cpp:50:52:50:54 | *src [Return] | overflowdestination.cpp:75:30:75:32 | overflowdest_test2 output argument |
40+
| overflowdestination.cpp:75:30:75:32 | *src | overflowdestination.cpp:50:52:50:54 | *src | overflowdestination.cpp:50:52:50:54 | *src [Reverse] | overflowdestination.cpp:75:30:75:32 | overflowdest_test2 output argument |
4141
#select
4242
| overflowdestination.cpp:30:2:30:8 | call to strncpy | main.cpp:6:27:6:30 | **argv | overflowdestination.cpp:30:17:30:20 | *arg1 | To avoid overflow, this operation should be bounded by destination-buffer size, not source-buffer size. |
4343
| overflowdestination.cpp:46:2:46:7 | call to memcpy | overflowdestination.cpp:43:8:43:10 | fgets output argument | overflowdestination.cpp:46:15:46:17 | *src | To avoid overflow, this operation should be bounded by destination-buffer size, not source-buffer size. |

0 commit comments

Comments
 (0)