Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dc7a0c1 + aeda2d6 commit ceb9fffCopy full SHA for ceb9fff
2 files changed
javascript/ql/src/semmle/javascript/dataflow/DataFlow.qll
@@ -1575,4 +1575,6 @@ module DataFlow {
1575
import Configuration
1576
import TrackedNodes
1577
import TypeTracking
1578
+
1579
+ predicate localTaintStep = TaintTracking::localTaintStep/2;
1580
}
javascript/ql/src/semmle/javascript/dataflow/TaintTracking.qll
@@ -902,4 +902,12 @@ module TaintTracking {
902
903
override predicate appliesTo(Configuration cfg) { any() }
904
905
906
+ /**
907
+ * Holds if taint propagates from `pred` to `succ` in one local (intra-procedural) step.
908
+ */
909
+ predicate localTaintStep(DataFlow::Node pred, DataFlow::Node succ) {
910
+ DataFlow::localFlowStep(pred, succ) or
911
+ any(AdditionalTaintStep s).step(pred, succ)
912
+ }
913
0 commit comments