C++: Reduce result duplication.

This commit is contained in:
Geoffrey White
2022-02-11 15:17:04 +00:00
parent 00ba76b7e4
commit c4d9c1d9e7
2 changed files with 2 additions and 26 deletions

View File

@@ -289,14 +289,14 @@ class ExposedSystemDataConfiguration extends TaintTracking::Configuration {
ExposedSystemDataConfiguration() { this = "ExposedSystemDataConfiguration" }
override predicate isSource(DataFlow::Node source) {
source.asExpr() = any(SystemData sd).getAnExpr()
source.asConvertedExpr() = any(SystemData sd).getAnExpr()
}
override predicate isSink(DataFlow::Node sink) {
exists(FunctionCall fc, FunctionInput input, int arg |
fc.getTarget().(RemoteFlowSinkFunction).hasRemoteFlowSink(input, _) and
input.isParameterDeref(arg) and
fc.getArgument(arg) = sink.asExpr()
fc.getArgument(arg).getFullyConverted() = sink.asConvertedExpr()
)
}
}