Skip to content

Commit e0f5c58

Browse files
committed
C++: Fix Code Scanning error.
1 parent c1077fe commit e0f5c58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-193/InvalidPointerDeref.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ module Barrier2 {
131131
}
132132

133133
Instruction getABarrierInstruction(FlowState2 state) {
134-
exists(IRGuardCondition g, Operand right, ValueNumber value, boolean edge |
135-
operandGuardChecks(g, value.getAUse(), right, state, edge) and
134+
exists(IRGuardCondition g, ValueNumber value, boolean edge |
135+
operandGuardChecks(g, value.getAUse(), _, state, edge) and
136136
result = value.getAnInstruction() and
137137
g.controls(result.getBlock(), edge)
138138
)

0 commit comments

Comments
 (0)