Skip to content

Commit 13df236

Browse files
committed
Rust: Effect of lifting content reads as taint steps.
1 parent 6e2702c commit 13df236

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

rust/ql/test/library-tests/dataflow/taint/inline-taint-flow.expected

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@ nodes
109109
| main.rs:116:15:116:29 | source_tuple(...) | semmle.label | source_tuple(...) |
110110
subpaths
111111
testFailures
112-
| main.rs:102:14:102:30 | ... .0 | Fixed missing result: hasTaintFlow=2 |
113-
| main.rs:103:14:103:30 | ... .1 | Fixed missing result: hasTaintFlow=2 |
114-
| main.rs:115:14:115:68 | ... .0 | Fixed missing result: hasTaintFlow=4 |
115-
| main.rs:116:14:116:68 | ... .1 | Fixed missing result: hasTaintFlow=4 |
116112
#select
117113
| main.rs:13:10:13:14 | ... + ... | main.rs:12:13:12:22 | source(...) | main.rs:13:10:13:14 | ... + ... | $@ | main.rs:12:13:12:22 | source(...) | source(...) |
118114
| main.rs:17:10:17:10 | b | main.rs:15:17:15:26 | source(...) | main.rs:17:10:17:10 | b | $@ | main.rs:15:17:15:26 | source(...) | source(...) |

rust/ql/test/library-tests/dataflow/taint/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ mod tuples {
9999
sink((source_string(1), "".to_string()).1);
100100

101101
sink(source_tuple(2)); // $ hasValueFlow=2
102-
sink(source_tuple(2).0); // $ MISSING: hasTaintFlow=2
103-
sink(source_tuple(2).1); // $ MISSING: hasTaintFlow=2
102+
sink(source_tuple(2).0); // $ hasTaintFlow=2
103+
sink(source_tuple(2).1); // $ hasTaintFlow=2
104104

105105
sink((("".to_string(), source_string(3)), ("".to_string(), "".to_string())));
106106
sink((("".to_string(), source_string(3)), ("".to_string(), "".to_string())).0);
@@ -112,8 +112,8 @@ mod tuples {
112112

113113
sink((source_tuple(4), ("".to_string(), "".to_string())));
114114
sink((source_tuple(4), ("".to_string(), "".to_string())).0); // $ hasValueFlow=4
115-
sink((source_tuple(4), ("".to_string(), "".to_string())).0.0); // $ MISSING: hasTaintFlow=4
116-
sink((source_tuple(4), ("".to_string(), "".to_string())).0.1); // $ MISSING: hasTaintFlow=4
115+
sink((source_tuple(4), ("".to_string(), "".to_string())).0.0); // $ hasTaintFlow=4
116+
sink((source_tuple(4), ("".to_string(), "".to_string())).0.1); // $ hasTaintFlow=4
117117
sink((source_tuple(4), ("".to_string(), "".to_string())).1);
118118
sink((source_tuple(4), ("".to_string(), "".to_string())).1.0);
119119
sink((source_tuple(4), ("".to_string(), "".to_string())).1.1);

0 commit comments

Comments
 (0)