Skip to content

Commit

Permalink
Merge pull request github#18644 from hvitved/rust/fix-bad-join
Browse files Browse the repository at this point in the history
Rust: Fix a bad join
  • Loading branch information
hvitved authored Feb 3, 2025
2 parents 180782d + cd1ff6a commit 1066b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/ql/lib/codeql/rust/dataflow/internal/SsaImpl.qll
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ private predicate isControlFlowJump(Expr e) { e instanceof CallExprBase or e ins
private predicate capturedCallRead(Expr call, BasicBlock bb, int i, Variable v) {
isControlFlowJump(call) and
exists(Cfg::CfgScope scope |
hasCapturedRead(v, scope) and
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)
Expand Down

0 comments on commit 1066b88

Please sign in to comment.