mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
JS: Fix: Now Array.prototype.with is properly flagged as taint step
This commit is contained in:
@@ -477,7 +477,7 @@ private module ArrayLibraries {
|
||||
private class ImmutableArrayTransformStep extends TaintTracking::SharedTaintStep {
|
||||
override predicate heapStep(DataFlow::Node pred, DataFlow::Node succ) {
|
||||
exists(DataFlow::MethodCallNode call |
|
||||
call.getMethodName() in ["toSorted", "toReversed"] and
|
||||
call.getMethodName() in ["toSorted", "toReversed", "with"] and
|
||||
pred = call.getReceiver() and
|
||||
succ = call
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user