Skip to content

Commit 1e12ede

Browse files
ihsinmegeoffw0
andauthored
Apply suggestions from code review
Co-authored-by: Geoffrey White <[email protected]>
1 parent 6e7644f commit 1e12ede

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
...
2-
throw ("my exception!",546); // BBAD
2+
throw ("my exception!",546); // BAD
33
...
44
throw errorFunc("my exception!",546); // GOOD
55
...

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ where
2424
texp.getEnclosingStmt().getParentStmt*() = ts.getStmt() and
2525
not ts.getACatchClause().isEmpty()
2626
) and
27-
msg = "DllMain contains exeption no wrapped to try..catch blocks."
27+
msg = "DllMain contains an exeption not wrapped in a try..catch block."
2828
or
2929
texp.getExpr().isParenthesised() and
3030
texp.getExpr().(CommaExpr).getLeftOperand().isConstant() and

0 commit comments

Comments
 (0)