Skip to content

Commit 62665ee

Browse files
committed
Update expected test output
1 parent 3ec5358 commit 62665ee

File tree

18 files changed

+92
-1492
lines changed

18 files changed

+92
-1492
lines changed

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

Lines changed: 0 additions & 419 deletions
Large diffs are not rendered by default.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ 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 | * ... |
192191
| flowOut.cpp:90:8:90:13 | call to source | flowOut.cpp:102:8:102:9 | * ... |
193192
| flowOut.cpp:131:15:131:20 | call to source | flowOut.cpp:146:8:146:10 | * ... |
194193
| flowOut.cpp:131:15:131:20 | call to source | flowOut.cpp:161:8:161:10 | * ... |

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ testFailures
22
| flowOut.cpp:19:9:19:9 | x | Unexpected result: ir |
33
| flowOut.cpp:46:8:46:11 | access to array | Unexpected result: ir |
44
| flowOut.cpp:73:8:73:9 | * ... | Unexpected result: ir |
5+
| flowOut.cpp:85:13:85:32 | // $ ir MISSING: ast | Missing result: ir |
56
| flowOut.cpp:117:8:117:9 | * ... | Unexpected result: ir |
67
| flowOut.cpp:146:8:146:10 | * ... | Unexpected result: ir |
78
failures

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

Lines changed: 0 additions & 37 deletions
Large diffs are not rendered by default.

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

Lines changed: 0 additions & 749 deletions
Large diffs are not rendered by default.

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

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

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ 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 [post update] [string] | test.cpp:235:27:235:31 | *p_str [Return] [string] | provenance | |
56+
| test.cpp:236:5:236:9 | *p_str [Reverse] [string] | test.cpp:235:27:235:31 | *p_str [Return] [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 | |
5859
| test.cpp:236:5:236:26 | ... = ... | test.cpp:236:5:236:9 | *p_str [post update] [string] | provenance | |
5960
| test.cpp:241:20:241:38 | call to malloc | test.cpp:241:20:241:38 | call to malloc | provenance | |
6061
| test.cpp:241:20:241:38 | call to malloc | test.cpp:242:22:242:27 | buffer | provenance | |
@@ -132,6 +133,7 @@ nodes
132133
| test.cpp:235:27:235:31 | *p_str [Return] [string] | semmle.label | *p_str [Return] [string] |
133134
| test.cpp:235:27:235:31 | *p_str [string] | semmle.label | *p_str [string] |
134135
| 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] |
135137
| test.cpp:236:5:236:9 | *p_str [post update] [string] | semmle.label | *p_str [post update] [string] |
136138
| test.cpp:236:5:236:26 | ... = ... | semmle.label | ... = ... |
137139
| test.cpp:241:20:241:38 | call to malloc | semmle.label | call to malloc |

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

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,15 @@ edges
77
| overflowdestination.cpp:50:52:50:54 | *src | overflowdestination.cpp:50:52:50:54 | *src | provenance | |
88
| overflowdestination.cpp:50:52:50:54 | *src | overflowdestination.cpp:50:52:50:54 | *src [Return] | provenance | DataFlowFunction |
99
| overflowdestination.cpp:50:52:50:54 | *src | overflowdestination.cpp:53:15:53:17 | *src | provenance | |
10-
| overflowdestination.cpp:50:52:50:54 | *src [Reverse] | overflowdestination.cpp:50:52:50:54 | *src [Return] | provenance | |
11-
| overflowdestination.cpp:57:52:57:54 | *src | overflowdestination.cpp:57:52:57:54 | *src | provenance | |
1210
| overflowdestination.cpp:57:52:57:54 | *src | overflowdestination.cpp:60:15:60:17 | *src | provenance | |
13-
| overflowdestination.cpp:60:15:60:17 | *src | overflowdestination.cpp:60:15:60:17 | *src [Reverse] | provenance | DataFlowFunction |
1411
| overflowdestination.cpp:60:15:60:17 | *src | overflowdestination.cpp:64:16:64:19 | *src2 | provenance | |
15-
| overflowdestination.cpp:60:15:60:17 | *src [Reverse] | overflowdestination.cpp:57:52:57:54 | *src [Return] | provenance | |
1612
| overflowdestination.cpp:73:8:73:10 | fgets output argument | overflowdestination.cpp:75:30:75:32 | *src | provenance | |
1713
| overflowdestination.cpp:73:8:73:10 | fgets output argument | overflowdestination.cpp:76:30:76:32 | *src | provenance | |
1814
| overflowdestination.cpp:75:30:75:32 | *src | overflowdestination.cpp:50:52:50:54 | *src | provenance | |
1915
| overflowdestination.cpp:75:30:75:32 | *src | overflowdestination.cpp:75:30:75:32 | overflowdest_test2 output argument | provenance | |
2016
| overflowdestination.cpp:75:30:75:32 | *src | overflowdestination.cpp:75:30:75:32 | overflowdest_test2 output argument | provenance | DataFlowFunction |
2117
| overflowdestination.cpp:75:30:75:32 | overflowdest_test2 output argument | overflowdestination.cpp:76:30:76:32 | *src | provenance | |
22-
| overflowdestination.cpp:75:30:75:32 | overflowdest_test2 output argument [Reverse] | overflowdestination.cpp:50:52:50:54 | *src [Reverse] | provenance | |
23-
| overflowdestination.cpp:75:30:75:32 | overflowdest_test2 output argument [Reverse] | overflowdestination.cpp:75:30:75:32 | overflowdest_test2 output argument | provenance | |
2418
| overflowdestination.cpp:76:30:76:32 | *src | overflowdestination.cpp:57:52:57:54 | *src | provenance | |
25-
| overflowdestination.cpp:76:30:76:32 | *src | overflowdestination.cpp:76:30:76:32 | overflowdest_test3 output argument | provenance | |
26-
| overflowdestination.cpp:76:30:76:32 | *src | overflowdestination.cpp:76:30:76:32 | overflowdest_test3 output argument | provenance | DataFlowFunction |
27-
| overflowdestination.cpp:76:30:76:32 | overflowdest_test3 output argument | overflowdestination.cpp:75:30:75:32 | overflowdest_test2 output argument [Reverse] | provenance | |
2819
nodes
2920
| main.cpp:6:27:6:30 | **argv | semmle.label | **argv |
3021
| main.cpp:7:33:7:36 | **argv | semmle.label | **argv |
@@ -36,27 +27,17 @@ nodes
3627
| overflowdestination.cpp:50:52:50:54 | *src | semmle.label | *src |
3728
| overflowdestination.cpp:50:52:50:54 | *src | semmle.label | *src |
3829
| overflowdestination.cpp:50:52:50:54 | *src [Return] | semmle.label | *src [Return] |
39-
| overflowdestination.cpp:50:52:50:54 | *src [Return] | semmle.label | *src [Return] |
40-
| overflowdestination.cpp:50:52:50:54 | *src [Reverse] | semmle.label | *src [Reverse] |
4130
| overflowdestination.cpp:53:15:53:17 | *src | semmle.label | *src |
4231
| overflowdestination.cpp:57:52:57:54 | *src | semmle.label | *src |
43-
| overflowdestination.cpp:57:52:57:54 | *src | semmle.label | *src |
44-
| overflowdestination.cpp:57:52:57:54 | *src [Return] | semmle.label | *src [Return] |
4532
| overflowdestination.cpp:60:15:60:17 | *src | semmle.label | *src |
46-
| overflowdestination.cpp:60:15:60:17 | *src [Reverse] | semmle.label | *src [Reverse] |
4733
| overflowdestination.cpp:64:16:64:19 | *src2 | semmle.label | *src2 |
4834
| overflowdestination.cpp:73:8:73:10 | fgets output argument | semmle.label | fgets output argument |
4935
| overflowdestination.cpp:75:30:75:32 | *src | semmle.label | *src |
5036
| overflowdestination.cpp:75:30:75:32 | overflowdest_test2 output argument | semmle.label | overflowdest_test2 output argument |
51-
| overflowdestination.cpp:75:30:75:32 | overflowdest_test2 output argument [Reverse] | semmle.label | overflowdest_test2 output argument [Reverse] |
5237
| overflowdestination.cpp:76:30:76:32 | *src | semmle.label | *src |
53-
| overflowdestination.cpp:76:30:76:32 | overflowdest_test3 output argument | semmle.label | overflowdest_test3 output argument |
5438
subpaths
5539
| 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 |
5640
| 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 |
57-
| overflowdestination.cpp:75:30:75:32 | overflowdest_test2 output argument [Reverse] | overflowdestination.cpp:50:52:50:54 | *src [Reverse] | overflowdestination.cpp:50:52:50:54 | *src [Return] | overflowdestination.cpp:75:30:75:32 | overflowdest_test2 output argument |
58-
| overflowdestination.cpp:76:30:76:32 | *src | overflowdestination.cpp:57:52:57:54 | *src | overflowdestination.cpp:57:52:57:54 | *src | overflowdestination.cpp:76:30:76:32 | overflowdest_test3 output argument |
59-
| overflowdestination.cpp:76:30:76:32 | *src | overflowdestination.cpp:57:52:57:54 | *src | overflowdestination.cpp:57:52:57:54 | *src [Return] | overflowdestination.cpp:76:30:76:32 | overflowdest_test3 output argument |
6041
#select
6142
| 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. |
6243
| 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)