Skip to content

Commit 6d27585

Browse files
authored
Update FindIncorrectlyUsedExceptions.ql
1 parent 418adb8 commit 6d27585

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
@@ -39,5 +39,6 @@ where
3939
fc.getTargetType().(Class).getABaseClass+().hasGlobalOrStdName("CException")
4040
) and
4141
fc instanceof ExprInVoidContext and
42+
not fc.isInMacroExpansion() and
4243
msg = "This object does not generate an exception."
4344
select fc, msg

0 commit comments

Comments
 (0)