Merge pull request #2479 from max-schaefer/localTaintStep

Approved by asgerf
This commit is contained in:
semmle-qlci
2019-12-02 11:35:43 +00:00
committed by GitHub
2 changed files with 10 additions and 0 deletions

View File

@@ -1575,4 +1575,6 @@ module DataFlow {
import Configuration
import TrackedNodes
import TypeTracking
predicate localTaintStep = TaintTracking::localTaintStep/2;
}

View File

@@ -902,4 +902,12 @@ module TaintTracking {
override predicate appliesTo(Configuration cfg) { any() }
}
/**
* Holds if taint propagates from `pred` to `succ` in one local (intra-procedural) step.
*/
predicate localTaintStep(DataFlow::Node pred, DataFlow::Node succ) {
DataFlow::localFlowStep(pred, succ) or
any(AdditionalTaintStep s).step(pred, succ)
}
}