Skip to content

Commit 6a28ddd

Browse files
committed
JS: un-deprecate deleted deprecated class that defined taint-steps
1 parent e140548 commit 6a28ddd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

javascript/ql/lib/semmle/javascript/dataflow/TaintTracking.qll

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,19 @@ module TaintTracking {
551551
}
552552
}
553553

554+
/**
555+
* A taint propagating data flow edge through persistent storage.
556+
* Use `TaintTracking::persistentStorageStep` instead of accessing this class.
557+
*/
558+
private class PersistentStorageTaintStep extends SharedTaintStep {
559+
override predicate persistentStorageStep(DataFlow::Node pred, DataFlow::Node succ) {
560+
exists(PersistentReadAccess read |
561+
pred = read.getAWrite().getValue() and
562+
succ = read
563+
)
564+
}
565+
}
566+
554567
/**
555568
* A taint propagating data flow edge for assignments of the form `o[k] = v`, where
556569
* one of the following holds:

0 commit comments

Comments
 (0)