mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Update cpp/ql/src/experimental/Security/CWE/CWE-266/IncorrectPrivilegeAssignment.cpp
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
...
|
||||
fchmod(fileno(fp), 0555 - cmusk); // BAD
|
||||
...
|
||||
fchmod(fileno(fp), 0555 & ~curumsk); // GOOD
|
||||
fchmod(fileno(fp), 0555 & ~maskOut); // GOOD
|
||||
...
|
||||
umask(0666);
|
||||
chmod(pathname, 0666); // BAD
|
||||
|
||||
Reference in New Issue
Block a user