mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
JS: Target post-update node instead of getALocalSource
getAPropertyWrite() contains getALocalSource() under the the hood. Don't rely on that to find the successor of a mutation.
This commit is contained in:
@@ -409,7 +409,7 @@ module TaintTracking {
|
||||
not assgn.getWriteNode() instanceof Property and // not a write inside an object literal
|
||||
pred = assgn.getRhs() and
|
||||
assgn = obj.getAPropertyWrite() and
|
||||
succ = obj
|
||||
succ = assgn.getBase().getPostUpdateNode()
|
||||
|
|
||||
obj instanceof DataFlow::ObjectLiteralNode
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user