Skip to content

Commit 6168b15

Browse files
ihsinmegeoffw0
andauthored
Update cpp/ql/src/experimental/Security/CWE/CWE-266/IncorrectPrivilegeAssignment.ql
Co-authored-by: Geoffrey White <[email protected]>
1 parent 7f0a7bb commit 6168b15

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
@@ -46,7 +46,7 @@ where
4646
fc.getArgument(0).getValue() = "0" and
4747
not exists(FunctionCall fctmp |
4848
fctmp.getTarget().hasGlobalOrStdName("umask") and
49-
fctmp.getArgument(0).getValue() != "0"
49+
not fctmp.getArgument(0).getValue() = "0"
5050
) and
5151
exists(FunctionCall fctmp |
5252
(

0 commit comments

Comments
 (0)