File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
javascript/ql/src/semmle/javascript/dataflow Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -737,12 +737,17 @@ module TaintTracking {
737
737
read = getAStaticCaptureRef ( )
738
738
or
739
739
exists ( ControlFlowNode mid |
740
- mid = getANodeReachingCaptureRef ( read ) and
741
- not mid = getACaptureSetter ( _) and
742
- result = mid .getAPredecessor ( )
740
+ result = getANodeReachingCaptureRefAux ( read , mid ) and
741
+ not mid = getACaptureSetter ( _)
743
742
)
744
743
}
745
744
745
+ pragma [ nomagic]
746
+ private ControlFlowNode getANodeReachingCaptureRefAux ( DataFlow:: PropRead read , ControlFlowNode mid ) {
747
+ mid = getANodeReachingCaptureRef ( read ) and
748
+ result = mid .getAPredecessor ( )
749
+ }
750
+
746
751
/**
747
752
* Holds if there is a step `pred -> succ` from the input of a RegExp match to
748
753
* a static property of `RegExp` defined.
You can’t perform that action at this time.
0 commit comments