File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
javascript/ql/src/semmle/javascript Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ module TaintTracking {
338
338
*/
339
339
cached
340
340
predicate legacyAdditionalTaintStep ( DataFlow:: Node pred , DataFlow:: Node succ ) {
341
- any ( AdditionalTaintStep step ) .step ( pred , succ )
341
+ any ( InternalAdditionalTaintStep step ) .step ( pred , succ )
342
342
}
343
343
344
344
/**
@@ -469,14 +469,23 @@ module TaintTracking {
469
469
}
470
470
471
471
/**
472
+ * DEPRECATED. Subclasses should extend `SharedTaintStep` instead, unless the subclass
473
+ * is part of a query, in which case it should be moved into the `isAdditionalTaintStep` predicate
474
+ * of the relevant taint-tracking configuration.
475
+ * Other uses of the `step` relation in this class should instead use the `TaintTracking::sharedTaintStep`
476
+ * predicate.
477
+ *
472
478
* A taint-propagating data flow edge that should be added to all taint tracking
473
479
* configurations in addition to standard data flow edges.
474
480
*
475
481
* Note: For performance reasons, all subclasses of this class should be part
476
482
* of the standard library. Override `Configuration::isAdditionalTaintStep`
477
483
* for analysis-specific taint steps.
478
484
*/
479
- abstract class AdditionalTaintStep extends DataFlow:: Node {
485
+ deprecated class AdditionalTaintStep = InternalAdditionalTaintStep ;
486
+
487
+ /** Internal version of `AdditionalTaintStep` that won't trigger deprecation warnings. */
488
+ abstract private class InternalAdditionalTaintStep extends DataFlow:: Node {
480
489
/**
481
490
* Holds if `pred` → `succ` should be considered a taint-propagating
482
491
* data flow edge.
Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ import javascript
9
9
*
10
10
* A taint propagating data flow edge arising from an operation in a URI library.
11
11
*/
12
- abstract deprecated class UriLibraryStep extends DataFlow:: ValueNode ,
13
- TaintTracking:: AdditionalTaintStep { }
12
+ abstract deprecated class UriLibraryStep extends DataFlow:: ValueNode {
13
+ predicate step ( DataFlow:: Node pred , DataFlow:: Node succ ) { none ( ) }
14
+ }
14
15
15
16
/**
16
17
* Provides classes for working with [urijs](http://medialize.github.io/URI.js/) code.
You can’t perform that action at this time.
0 commit comments