JavaScript: Switch AdditionalTaintStep to extend a unit type.

This is a backwards-incompatible change, since any existing subtypes of `AdditionalTaintStep`
become invalid.
This commit is contained in:
Pavel Avgustinov
2021-03-06 10:58:45 +00:00
parent de7f9faf18
commit e9bf9b7356
24 changed files with 459 additions and 580 deletions

View File

@@ -1,11 +1,11 @@
import javascript
class StepThroughResolveSymlinks extends TaintTracking::AdditionalTaintStep, DataFlow::CallNode {
StepThroughResolveSymlinks() { this = DataFlow::moduleImport("resolve-symlinks").getACall() }
class StepThroughResolveSymlinks extends TaintTracking::AdditionalTaintStep {
override predicate step(DataFlow::Node pred, DataFlow::Node succ) {
pred = this.getArgument(0) and
succ = this
exists(DataFlow::CallNode call | call = DataFlow::moduleImport("resolve-symlinks").getACall() |
pred = call.getArgument(0) and
succ = call
)
}
}