Skip to content

Commit 0359c38

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

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.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
...
77
fchmod(fileno(fp), 0555 - cmusk); // BAD
88
...
9-
fchmod(fileno(fp), 0555 & ~curumsk); // GOOD
9+
fchmod(fileno(fp), 0555 & ~maskOut); // GOOD
1010
...
1111
umask(0666);
1212
chmod(pathname, 0666); // BAD

0 commit comments

Comments
 (0)