mirror of
https://github.com/github/codeql.git
synced 2026-04-22 07:15:15 +02:00
C++: Limit SEH exception edges to calls in __try blocks
This commit is contained in:
@@ -364,7 +364,7 @@ class TranslatedFunctionCall extends TranslatedCallExpr, TranslatedDirectCall {
|
||||
final override predicate mayThrowException(ExceptionEdge e) {
|
||||
this.mustThrowException(e)
|
||||
or
|
||||
expr.getEnclosingStmt().getParentStmt*() instanceof MicrosoftTryStmt and
|
||||
exists(MicrosoftTryStmt tryStmt | tryStmt.getStmt().getAChild*() = expr) and
|
||||
e instanceof SehExceptionEdge
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user