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 8aac5b3 commit 2d5a263Copy full SHA for 2d5a263
cpp/ql/src/experimental/Security/CWE/CWE-703/FindIncorrectlyUsedExceptions.ql
@@ -44,5 +44,7 @@ where
44
not fc instanceof ConstructorDirectInit and
45
not fc.getEnclosingStmt() instanceof DeclStmt and
46
not fc instanceof ConstructorDelegationInit and
47
+ not fc.getParent() instanceof Initializer and
48
+ not fc.getParent() instanceof AllocationExpr and
49
msg = "This object does not generate an exception."
50
select fc, msg
0 commit comments