Skip to content

Commit 01fcc41

Browse files
committed
Cfg: Allow for multiple exception successors.
1 parent 7e39967 commit 01fcc41

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
@@ -1516,6 +1516,8 @@ module MakeWithSplitting<
15161516
query predicate multipleSuccessors(Node node, SuccessorType t, Node successor) {
15171517
strictcount(getASuccessor(node, t)) > 1 and
15181518
successor = getASuccessor(node, t) and
1519+
// allow for multiple exception successors
1520+
not t instanceof ExceptionSuccessor and
15191521
// allow for functions with multiple bodies
15201522
not (t instanceof SimpleSuccessorType and node instanceof EntryNode)
15211523
}

0 commit comments

Comments
 (0)