mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
Apply suggestions from code review
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
...
|
||||
throw ("my exception!",546); // BBAD
|
||||
throw ("my exception!",546); // BAD
|
||||
...
|
||||
throw errorFunc("my exception!",546); // GOOD
|
||||
...
|
||||
|
||||
@@ -24,7 +24,7 @@ where
|
||||
texp.getEnclosingStmt().getParentStmt*() = ts.getStmt() and
|
||||
not ts.getACatchClause().isEmpty()
|
||||
) and
|
||||
msg = "DllMain contains exeption no wrapped to try..catch blocks."
|
||||
msg = "DllMain contains an exeption not wrapped in a try..catch block."
|
||||
or
|
||||
texp.getExpr().isParenthesised() and
|
||||
texp.getExpr().(CommaExpr).getLeftOperand().isConstant() and
|
||||
|
||||
Reference in New Issue
Block a user