Skip to content

Commit 674b9ad

Browse files
committed
use getALocalSource instead of smallstep in JQuery::legacyObjectSource
1 parent 69348b1 commit 674b9ad

File tree

1 file changed

+5
-5
lines changed
  • javascript/ql/src/semmle/javascript/frameworks

1 file changed

+5
-5
lines changed

javascript/ql/src/semmle/javascript/frameworks/jQuery.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -544,17 +544,17 @@ module JQuery {
544544
}
545545

546546
/** A source of jQuery objects from the AST-based `JQueryObject` class. */
547-
private DataFlow::Node legacyObjectSource() { result = any(JQueryObjectInternal e).flow() }
547+
private DataFlow::SourceNode legacyObjectSource() {
548+
result = any(JQueryObjectInternal e).flow().getALocalSource()
549+
}
548550

549551
/** Gets a source of jQuery objects. */
550552
private DataFlow::SourceNode objectSource(DataFlow::TypeTracker t) {
551553
t.start() and
552554
result instanceof ObjectSource::Range
553555
or
554-
exists(DataFlow::TypeTracker init |
555-
init.start() and
556-
t = init.smallstep(legacyObjectSource(), result)
557-
)
556+
t.start() and
557+
result = legacyObjectSource()
558558
}
559559

560560
/** Gets a data flow node referring to a jQuery object. */

0 commit comments

Comments
 (0)