Skip to content

Commit 563e084

Browse files
Nikita Kraiouchkinelcartey
Nikita Kraiouchkine
andauthored
EXP43-C: Replace != with not =
Co-authored-by: Luke Cartey <5377966+lcartey@users.noreply.github.com>
1 parent 2dd045c commit 563e084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c/cert/src/rules/EXP43-C/DoNotPassAliasedPointerToRestrictQualifiedParam.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ where
113113
not isExcluded(call, Pointers3Package::doNotPassAliasedPointerToRestrictQualifiedParamQuery()) and
114114
arg1 = call.getARestrictPtrArg() and
115115
arg2 = call.getAPtrArg() and
116-
arg1 != arg2 and
116+
not arg1 = arg2 and
117117
exists(PointerValueToRestrictArgConfig config, Expr source1, Expr source2 |
118118
config.hasFlow(DataFlow::exprNode(source1), DataFlow::exprNode(arg1.getAChild*())) and
119119
(

0 commit comments

Comments
 (0)