Skip to content

Commit 7832e85

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

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
@@ -4,7 +4,7 @@
44
maskOut = S_IRWXG | S_IRWXO;
55
umask(maskOut); // GOOD
66
...
7-
fchmod(fileno(fp), 0555 - cmusk); // BAD
7+
fchmod(fileno(fp), 0555 - maskOut); // BAD
88
...
99
fchmod(fileno(fp), 0555 & ~maskOut); // GOOD
1010
...

0 commit comments

Comments
 (0)