Skip to content

Commit fd73f40

Browse files
authored
Update FindIncorrectlyUsedExceptions.ql
1 parent 5709365 commit fd73f40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-703/FindIncorrectlyUsedExceptions.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,6 @@ where
4646
not fc instanceof ConstructorDelegationInit and
4747
not fc.getParent() instanceof Initializer and
4848
not fc.getParent() instanceof AllocationExpr and
49+
not fc.getEnclosingStmt() instanceof ReturnStmt and
4950
msg = "This object does not generate an exception."
5051
select fc, msg

0 commit comments

Comments
 (0)