mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
JS: fixup: use the basic block of the actual write (ODASA-7636)
This commit is contained in:
@@ -78,10 +78,8 @@ predicate isDeadAssignment(string name, DataFlow::PropWrite assign1, DataFlow::P
|
||||
*/
|
||||
bindingset[name]
|
||||
predicate maybeAccessesAssignedPropInBlock(string name, DataFlow::PropWrite assign, boolean after) {
|
||||
exists(ControlFlowNode write, ReachableBasicBlock block, int i, int j, Expr e |
|
||||
write = assign.getWriteNode() and
|
||||
block = assign.getBasicBlock() and
|
||||
write = block.getNode(i) and
|
||||
exists(ReachableBasicBlock block, int i, int j, Expr e |
|
||||
assign.getWriteNode() = block.getNode(i) and
|
||||
e = block.getNode(j) and
|
||||
maybeAccessesProperty(e, name)
|
||||
|
|
||||
|
||||
Reference in New Issue
Block a user