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 41e15cd commit ea1d18eCopy full SHA for ea1d18e
1 file changed
cpp/ql/src/experimental/Security/CWE/CWE-266/IncorrectPrivilegeAssignment.cpp
@@ -1,7 +1,8 @@
1
...
2
umask(0); // BAD
3
4
- cmusk = umask(S_IRWXG | S_IRWXO); // GOOD
+ maskOut = S_IRWXG | S_IRWXO;
5
+ umask(maskOut); // GOOD
6
7
fchmod(fileno(fp), 0555 - cmusk); // BAD
8
0 commit comments