C#: Fix dataflow.

This commit is contained in:
calum
2019-01-31 19:46:15 +00:00
parent 92eb857dac
commit 5144f89a5b

View File

@@ -85,7 +85,7 @@ private module Cached {
exists(LibraryTypeDataFlow ltdf, CallableFlowSource csource, CallableFlowSinkDelegateArg csink |
ltdf.callableFlow(csource, csink, callable, preservesValue) and
call.getTarget().getSourceDeclaration() = callable and
csink = getDelegateFlowSinkArg(callable, i, j) and
csink = getDelegateFlowSinkArg(callable, j, i) and
source = csource.getSource(call)
)
}
@@ -107,7 +107,7 @@ private module Cached {
ltdf.callableFlow(csource, csink, callable, preservesValue) and
call.getTarget().getSourceDeclaration() = callable and
csource = getDelegateFlowSourceArg(callable, i) and
csink = getDelegateFlowSinkArg(callable, j, k)
csink = getDelegateFlowSinkArg(callable, k, j)
)
}
}