mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
JS: un-deprecate deleted deprecated class that defined taint-steps
This commit is contained in:
@@ -551,6 +551,19 @@ module TaintTracking {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A taint propagating data flow edge through persistent storage.
|
||||
* Use `TaintTracking::persistentStorageStep` instead of accessing this class.
|
||||
*/
|
||||
private class PersistentStorageTaintStep extends SharedTaintStep {
|
||||
override predicate persistentStorageStep(DataFlow::Node pred, DataFlow::Node succ) {
|
||||
exists(PersistentReadAccess read |
|
||||
pred = read.getAWrite().getValue() and
|
||||
succ = read
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A taint propagating data flow edge for assignments of the form `o[k] = v`, where
|
||||
* one of the following holds:
|
||||
|
||||
Reference in New Issue
Block a user