Skip to content

Commit 0df7d6f

Browse files
committed
Cfg: Allow for multiple exception successors.
1 parent 4b899bb commit 0df7d6f

File tree

1 file changed

+2
-0
lines changed
  • shared/controlflow/codeql/controlflow

1 file changed

+2
-0
lines changed

shared/controlflow/codeql/controlflow/Cfg.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,6 +1521,8 @@ module MakeWithSplitting<
15211521
query predicate multipleSuccessors(Node node, SuccessorType t, Node successor) {
15221522
strictcount(getASuccessor(node, t)) > 1 and
15231523
successor = getASuccessor(node, t) and
1524+
// allow for multiple exception successors
1525+
not t instanceof ExceptionSuccessor and
15241526
// allow for functions with multiple bodies
15251527
not (t instanceof SimpleSuccessorType and node instanceof EntryNode)
15261528
}

0 commit comments

Comments
 (0)