File tree Expand file tree Collapse file tree
javascript/ql/src/semmle/javascript Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -165,14 +165,12 @@ private class FunctionalExtendCallShallow extends ExtendCall {
165165 * A taint propagating data flow edge from the objects flowing into an extend call to its return value
166166 * and to the source of the destination object.
167167 */
168- private class ExtendCallTaintStep extends TaintTracking:: AdditionalTaintStep {
169- ExtendCall extend ;
170-
171- ExtendCallTaintStep ( ) { this = extend }
172-
168+ private class ExtendCallTaintStep extends TaintTracking:: SharedTaintStep {
173169 override predicate step ( DataFlow:: Node pred , DataFlow:: Node succ ) {
174- pred = extend .getASourceOperand ( ) and succ = extend .getDestinationOperand ( ) .getALocalSource ( )
175- or
176- pred = extend .getAnOperand ( ) and succ = extend
170+ exists ( ExtendCall extend |
171+ pred = extend .getASourceOperand ( ) and succ = extend .getDestinationOperand ( ) .getALocalSource ( )
172+ or
173+ pred = extend .getAnOperand ( ) and succ = extend
174+ )
177175 }
178176}
You can’t perform that action at this time.
0 commit comments