mirror of
https://github.com/github/codeql.git
synced 2026-04-19 14:04:09 +02:00
Rust: Fix capturedCallRead
This commit is contained in:
@@ -189,7 +189,7 @@ private predicate capturedCallRead(Expr call, BasicBlock bb, int i, Variable v)
|
||||
hasCapturedRead(pragma[only_bind_into](v), pragma[only_bind_into](scope)) and
|
||||
(
|
||||
variableWriteInOuterScope(bb, any(int j | j < i), v, scope) or
|
||||
variableWriteInOuterScope(bb.getAPredecessor+(), _, v, scope)
|
||||
variableWriteInOuterScope(bb.getImmediateDominator+(), _, v, scope)
|
||||
) and
|
||||
call = bb.getNode(i).getAstNode()
|
||||
)
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
uselessPhiNode
|
||||
| sqlx.rs:155:5:157:5 | SSA phi(arg0) | 1 |
|
||||
phiWithoutTwoPriorRefs
|
||||
| sqlx.rs:155:5:157:5 | SSA phi(arg0) | sqlx.rs:155:5:157:5 | if enable_remote {...} | sqlx.rs:156:17:156:86 | arg0 | 1 |
|
||||
Reference in New Issue
Block a user