mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
JS: Change Extend steps to PreCallGraphStep
This commit is contained in:
@@ -157,10 +157,12 @@ private class FunctionalExtendCallShallow extends ExtendCall {
|
||||
}
|
||||
|
||||
/**
|
||||
* A taint propagating data flow edge from the objects flowing into an extend call to its return value
|
||||
* A value-preserving data flow edge from the objects flowing into an extend call to its return value
|
||||
* and to the source of the destination object.
|
||||
*
|
||||
* Since all object properties are preserved, we model this as a value-preserving step.
|
||||
*/
|
||||
private class ExtendCallTaintStep extends TaintTracking::SharedTaintStep {
|
||||
private class ExtendCallStep extends PreCallGraphStep {
|
||||
override predicate step(DataFlow::Node pred, DataFlow::Node succ) {
|
||||
exists(ExtendCall extend |
|
||||
pred = extend.getASourceOperand() and succ = extend.getDestinationOperand().getALocalSource()
|
||||
|
||||
Reference in New Issue
Block a user