File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
javascript/ql/src/semmle/javascript/dataflow Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1575,4 +1575,6 @@ module DataFlow {
15751575 import Configuration
15761576 import TrackedNodes
15771577 import TypeTracking
1578+
1579+ predicate localTaintStep = TaintTracking:: localTaintStep / 2 ;
15781580}
Original file line number Diff line number Diff line change @@ -902,4 +902,12 @@ module TaintTracking {
902902
903903 override predicate appliesTo ( Configuration cfg ) { any ( ) }
904904 }
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+ }
905913}
You can’t perform that action at this time.
0 commit comments