Skip to content

Commit f5f6189

Browse files
committed
test
1 parent 935c833 commit f5f6189

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

csharp/ql/test/library-tests/dataflow/local/DataFlowStep.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,8 @@
527527
| LocalDataFlow.cs:381:13:381:13 | access to local variable x | LocalDataFlow.cs:381:13:381:29 | SSA def(x) |
528528
| LocalDataFlow.cs:381:13:381:29 | SSA def(x) | LocalDataFlow.cs:382:15:382:15 | access to local variable x |
529529
| LocalDataFlow.cs:381:17:381:29 | "not tainted" | LocalDataFlow.cs:381:13:381:13 | access to local variable x |
530+
| LocalDataFlow.cs:385:34:385:34 | SSA param(s) | LocalDataFlow.cs:387:15:387:15 | access to parameter s |
531+
| LocalDataFlow.cs:385:34:385:34 | s | LocalDataFlow.cs:385:34:385:34 | SSA param(s) |
530532
| SSA.cs:3:14:3:16 | this | SSA.cs:3:14:3:16 | this access |
531533
| SSA.cs:5:17:5:17 | SSA entry def(this.S) | SSA.cs:67:9:67:14 | access to field S |
532534
| SSA.cs:5:17:5:17 | this | SSA.cs:67:9:67:12 | this access |

csharp/ql/test/library-tests/dataflow/local/LocalDataFlow.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,4 +381,9 @@ void PhiFlow(bool b1, bool b2)
381381
x = "not tainted";
382382
Check(x);
383383
}
384+
385+
void DefaultParamFlow(string s = "taint source")
386+
{
387+
Check(s);
388+
}
384389
}

csharp/ql/test/library-tests/dataflow/local/TaintTrackingStep.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,8 @@
639639
| LocalDataFlow.cs:381:13:381:13 | access to local variable x | LocalDataFlow.cs:381:13:381:29 | SSA def(x) |
640640
| LocalDataFlow.cs:381:13:381:29 | SSA def(x) | LocalDataFlow.cs:382:15:382:15 | access to local variable x |
641641
| LocalDataFlow.cs:381:17:381:29 | "not tainted" | LocalDataFlow.cs:381:13:381:13 | access to local variable x |
642+
| LocalDataFlow.cs:385:34:385:34 | SSA param(s) | LocalDataFlow.cs:387:15:387:15 | access to parameter s |
643+
| LocalDataFlow.cs:385:34:385:34 | s | LocalDataFlow.cs:385:34:385:34 | SSA param(s) |
642644
| SSA.cs:3:14:3:16 | this | SSA.cs:3:14:3:16 | this access |
643645
| SSA.cs:5:17:5:17 | SSA entry def(this.S) | SSA.cs:67:9:67:14 | access to field S |
644646
| SSA.cs:5:17:5:17 | this | SSA.cs:67:9:67:12 | this access |

0 commit comments

Comments
 (0)