mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
JS: Extend
This commit is contained in:
@@ -165,14 +165,12 @@ private class FunctionalExtendCallShallow extends ExtendCall {
|
||||
* A taint propagating data flow edge from the objects flowing into an extend call to its return value
|
||||
* and to the source of the destination object.
|
||||
*/
|
||||
private class ExtendCallTaintStep extends TaintTracking::AdditionalTaintStep {
|
||||
ExtendCall extend;
|
||||
|
||||
ExtendCallTaintStep() { this = extend }
|
||||
|
||||
private class ExtendCallTaintStep extends TaintTracking::SharedTaintStep {
|
||||
override predicate step(DataFlow::Node pred, DataFlow::Node succ) {
|
||||
pred = extend.getASourceOperand() and succ = extend.getDestinationOperand().getALocalSource()
|
||||
or
|
||||
pred = extend.getAnOperand() and succ = extend
|
||||
exists(ExtendCall extend |
|
||||
pred = extend.getASourceOperand() and succ = extend.getDestinationOperand().getALocalSource()
|
||||
or
|
||||
pred = extend.getAnOperand() and succ = extend
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user