Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae56285

Browse files
committed
use callgraph instead of type-inference for array taint-steps
1 parent b20ce8b commit ae56285

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

javascript/ql/src/semmle/javascript/Arrays.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module ArrayTaintTracking {
2525
// `array.map(function (elt, i, ary) { ... })`: if `array` is tainted, then so are
2626
// `elt` and `ary`; similar for `forEach`
2727
exists(Function f |
28-
call.getArgument(0).analyze().getAValue().(AbstractFunction).getFunction() = f and
28+
call.getArgument(0).getAFunctionValue(0).getFunction() = f and
2929
call.(DataFlow::MethodCallNode).getMethodName() = ["map", "forEach"] and
3030
pred = call.getReceiver() and
3131
succ = DataFlow::parameterNode(f.getParameter([0, 2]))

0 commit comments

Comments
 (0)