File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,17 @@ import semmle.code.cpp.controlflow.Guards
20
20
* A check on `signal` call return value
21
21
* `if (signal(SIGINT, handler) == SIG_ERR)`
22
22
*/
23
- class SignalCheckOperation extends EqualityOperation , GuardCondition {
23
+ class SignalCheckOperation extends EqualityOperation instanceof GuardCondition {
24
24
BasicBlock errorSuccessor ;
25
25
26
26
SignalCheckOperation ( ) {
27
27
this .getAnOperand ( ) = any ( MacroInvocation m | m .getMacroName ( ) = "SIG_ERR" ) .getExpr ( ) and
28
28
(
29
29
this .getOperator ( ) = "==" and
30
- this .controls ( errorSuccessor , true )
30
+ super .controls ( errorSuccessor , true )
31
31
or
32
32
this .getOperator ( ) = "!=" and
33
- this .controls ( errorSuccessor , false )
33
+ super .controls ( errorSuccessor , false )
34
34
)
35
35
}
36
36
You can’t perform that action at this time.
0 commit comments