File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
javascript/ql/lib/semmle/javascript Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -444,4 +444,17 @@ private module ArrayLibraries {
444
444
)
445
445
}
446
446
}
447
+
448
+ /**
449
+ * A taint propagating data flow edge arising from sorting.
450
+ */
451
+ private class SortTaintStep extends TaintTracking:: SharedTaintStep {
452
+ override predicate heapStep ( DataFlow:: Node pred , DataFlow:: Node succ ) {
453
+ exists ( DataFlow:: MethodCallNode call |
454
+ call .getMethodName ( ) = "sort" and
455
+ pred = call .getReceiver ( ) and
456
+ succ = call
457
+ )
458
+ }
459
+ }
447
460
}
Original file line number Diff line number Diff line change @@ -869,19 +869,6 @@ module TaintTracking {
869
869
}
870
870
}
871
871
872
- /**
873
- * A taint propagating data flow edge arising from sorting.
874
- */
875
- private class SortTaintStep extends SharedTaintStep {
876
- override predicate heapStep ( DataFlow:: Node pred , DataFlow:: Node succ ) {
877
- exists ( DataFlow:: MethodCallNode call |
878
- call .getMethodName ( ) = "sort" and
879
- pred = call .getReceiver ( ) and
880
- succ = call
881
- )
882
- }
883
- }
884
-
885
872
/**
886
873
* A taint step through an exception constructor, such as `x` to `new Error(x)`.
887
874
*/
You can’t perform that action at this time.
0 commit comments