Skip to content

Commit 792231c

Browse files
committed
Removing SEH default case for function calls as the logic to handle SEH is not yet part of the IR generation to make this logic work.
1 parent 1c7b5ae commit 792231c

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

cpp/ql/lib/semmle/code/cpp/models/implementations/StructuredExceptionHandling.qll

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
import semmle.code.cpp.models.interfaces.Throwing
22

3-
/**
4-
* The default behavior for Structured Exception Handling (SEH) is
5-
* any function may (conditionally) raise an exception.
6-
* NOTE: this can be overridden by for any specific function to make in
7-
* unconditional or non-throwing. IR generation will enforce
8-
* the most strict interpretation.
9-
*/
10-
class DefaultSehExceptionBehavior extends ThrowingFunction {
11-
DefaultSehExceptionBehavior() { any() }
12-
13-
override predicate raisesException(boolean unconditional) { unconditional = false }
14-
15-
override TSehException getExceptionType() { any() }
16-
}
17-
183
class WindowsDriverExceptionAnnotation extends ThrowingFunction {
194
WindowsDriverExceptionAnnotation() {
205
this.hasGlobalName(["RaiseException", "ExRaiseAccessViolation", "ExRaiseDatatypeMisalignment"])

0 commit comments

Comments
 (0)