Skip to content

Commit 21ab8b0

Browse files
authored
Update IncorrectPrivilegeAssignment.ql
1 parent 6168b15 commit 21ab8b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-266/IncorrectPrivilegeAssignment.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ where
5454
fctmp.getTarget().hasGlobalOrStdName("open")
5555
) and
5656
fctmp.getNumberOfArguments() = 2 and
57-
fctmp.getArgument(0).getValue() != "/dev/null"
57+
not fctmp.getArgument(0).getValue() = "/dev/null"
5858
) and
5959
not exists(FunctionCall fctmp |
6060
fctmp.getTarget().hasGlobalOrStdName("chmod") or

0 commit comments

Comments
 (0)