Skip to content

Commit 768b3c8

Browse files
committed
C++: Fix a bug that slipped into fd47738.
1 parent be06230 commit 768b3c8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cpp/ql/src/semmle/code/cpp/controlflow/StackVariableReachability.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,7 @@ abstract class StackVariableReachability extends string {
435435
not exists(Condition cond | cond = getACondition(source, v, pred) |
436436
succ = pred.getATrueSuccessor() and
437437
cond.refutesCondition(pragma[only_bind_out](MkCondition(pred.getEnd(), true)))
438-
)
439-
or
438+
) and
440439
// If we picked the successor edge corresponding to a condition being false, there must not be
441440
// another path condition that refutes that the condition is false.
442441
not exists(Condition cond | cond = getACondition(source, v, pred) |

0 commit comments

Comments
 (0)