Skip to content

Commit bc2e7d4

Browse files
committed
Java: Fix accidental CP in CFG for asserts.
1 parent f697511 commit bc2e7d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/ql/lib/semmle/code/java/ControlFlowGraph.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1621,7 +1621,8 @@ private module ControlFlowGraphImpl {
16211621
result.(AssertThrowNode).getAstNode() = assertstmt
16221622
)
16231623
or
1624-
last(assertstmt.getMessage(), n, NormalCompletion()) and
1624+
last(assertstmt.getMessage(), n, completion) and
1625+
completion = NormalCompletion() and
16251626
result.(AssertThrowNode).getAstNode() = assertstmt
16261627
)
16271628
or

0 commit comments

Comments
 (0)