Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5144f89

Browse files
committed
C#: Fix dataflow.
1 parent 92eb857 commit 5144f89

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

csharp/ql/src/semmle/code/csharp/dataflow/LibraryTypeDataFlow.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private module Cached {
8585
exists(LibraryTypeDataFlow ltdf, CallableFlowSource csource, CallableFlowSinkDelegateArg csink |
8686
ltdf.callableFlow(csource, csink, callable, preservesValue) and
8787
call.getTarget().getSourceDeclaration() = callable and
88-
csink = getDelegateFlowSinkArg(callable, i, j) and
88+
csink = getDelegateFlowSinkArg(callable, j, i) and
8989
source = csource.getSource(call)
9090
)
9191
}
@@ -107,7 +107,7 @@ private module Cached {
107107
ltdf.callableFlow(csource, csink, callable, preservesValue) and
108108
call.getTarget().getSourceDeclaration() = callable and
109109
csource = getDelegateFlowSourceArg(callable, i) and
110-
csink = getDelegateFlowSinkArg(callable, j, k)
110+
csink = getDelegateFlowSinkArg(callable, k, j)
111111
)
112112
}
113113
}

0 commit comments

Comments
 (0)