We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2778d66 + d77250a commit 95ea035Copy full SHA for 95ea035
1 file changed
c/cert/src/rules/ERR32-C/DoNotRelyOnIndeterminateValuesOfErrno.ql
@@ -20,17 +20,17 @@ import semmle.code.cpp.controlflow.Guards
20
* A check on `signal` call return value
21
* `if (signal(SIGINT, handler) == SIG_ERR)`
22
*/
23
-class SignalCheckOperation extends EqualityOperation, GuardCondition {
+class SignalCheckOperation extends EqualityOperation instanceof GuardCondition {
24
BasicBlock errorSuccessor;
25
26
SignalCheckOperation() {
27
this.getAnOperand() = any(MacroInvocation m | m.getMacroName() = "SIG_ERR").getExpr() and
28
(
29
this.getOperator() = "==" and
30
- this.controls(errorSuccessor, true)
+ super.controls(errorSuccessor, true)
31
or
32
this.getOperator() = "!=" and
33
- this.controls(errorSuccessor, false)
+ super.controls(errorSuccessor, false)
34
)
35
}
36
0 commit comments