Skip to content

Commit e383e44

Browse files
authored
Update IncorrectPrivilegeAssignment.ql
1 parent ea1d18e commit e383e44

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
@@ -34,7 +34,7 @@ where
3434
fc.getArgument(0).getValue() = "0" and
3535
not exists(FunctionCall fctmp |
3636
fctmp.getTarget().hasGlobalOrStdName("umask") and
37-
globalValueNumber(fctmp.getArgument(0)) != globalValueNumber(fc.getArgument(0))
37+
fctmp.getArgument(0).getValue() != "0"
3838
) and
3939
exists(FunctionCall fctmp |
4040
(

0 commit comments

Comments
 (0)