File tree Expand file tree Collapse file tree
javascript/ql/src/semmle/javascript/frameworks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,14 +134,12 @@ private class SimplePropertyProjection extends PropertyProjection::Range {
134134/**
135135 * A taint step for a property projection.
136136 */
137- private class PropertyProjectionTaintStep extends TaintTracking:: AdditionalTaintStep {
138- PropertyProjection projection ;
139-
140- PropertyProjectionTaintStep ( ) { projection = this }
141-
137+ private class PropertyProjectionTaintStep extends TaintTracking:: SharedTaintStep {
142138 override predicate step ( DataFlow:: Node pred , DataFlow:: Node succ ) {
143139 // reading from a tainted object yields a tainted result
144- this = succ and
145- pred = projection .getObject ( )
140+ exists ( PropertyProjection projection |
141+ pred = projection .getObject ( ) and
142+ succ = projection
143+ )
146144 }
147145}
You can’t perform that action at this time.
0 commit comments