We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6168b15 commit 21ab8b0Copy full SHA for 21ab8b0
cpp/ql/src/experimental/Security/CWE/CWE-266/IncorrectPrivilegeAssignment.ql
@@ -54,7 +54,7 @@ where
54
fctmp.getTarget().hasGlobalOrStdName("open")
55
) and
56
fctmp.getNumberOfArguments() = 2 and
57
- fctmp.getArgument(0).getValue() != "/dev/null"
+ not fctmp.getArgument(0).getValue() = "/dev/null"
58
59
not exists(FunctionCall fctmp |
60
fctmp.getTarget().hasGlobalOrStdName("chmod") or
0 commit comments