mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
use callgraph instead of type-inference for array taint-steps
This commit is contained in:
@@ -25,7 +25,7 @@ module ArrayTaintTracking {
|
||||
// `array.map(function (elt, i, ary) { ... })`: if `array` is tainted, then so are
|
||||
// `elt` and `ary`; similar for `forEach`
|
||||
exists(Function f |
|
||||
call.getArgument(0).analyze().getAValue().(AbstractFunction).getFunction() = f and
|
||||
call.getArgument(0).getAFunctionValue(0).getFunction() = f and
|
||||
call.(DataFlow::MethodCallNode).getMethodName() = ["map", "forEach"] and
|
||||
pred = call.getReceiver() and
|
||||
succ = DataFlow::parameterNode(f.getParameter([0, 2]))
|
||||
|
||||
Reference in New Issue
Block a user