We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d61fcfc commit 6e7644fCopy full SHA for 6e7644f
cpp/ql/src/experimental/Security/CWE/CWE-703/FindIncorrectlyUsedExceptions.ql
@@ -34,7 +34,10 @@ where
34
)
35
or
36
fc.getTarget() instanceof Constructor and
37
- fc.getTargetType().(Class).getABaseClass+().hasGlobalOrStdName("exception") and
+ (
38
+ fc.getTargetType().(Class).getABaseClass+().hasGlobalOrStdName("exception") or
39
+ fc.getTargetType().(Class).getABaseClass+().hasGlobalOrStdName("CException")
40
+ ) and
41
not fc.isInMacroExpansion() and
42
not exists(ThrowExpr texp | fc.getEnclosingStmt() = texp.getEnclosingStmt()) and
43
not exists(FunctionCall fctmp | fctmp.getAnArgument() = fc) and
0 commit comments