Java: Fix bug in model flow sanitizer.

This commit is contained in:
Anders Schack-Mulligen
2022-02-04 15:08:35 +01:00
committed by Michael Nebel
parent 16a5ccddea
commit 908cc40c9f
2 changed files with 3 additions and 2 deletions

View File

@@ -80,7 +80,9 @@ class ThroughFlowConfig extends TaintTracking::Configuration {
)
}
override predicate isSanitizer(DataFlow::Node n) { not isRelevantType(n.getType()) }
override predicate isSanitizer(DataFlow::Node n) {
exists(Type t | t = n.getType() and not isRelevantType(t))
}
override DataFlow::FlowFeature getAFeature() {
result instanceof DataFlow::FeatureEqualSourceSinkCallContext