Skip to content

Commit 41e15cd

Browse files
authored
Update IncorrectPrivilegeAssignment.cpp
1 parent a33c076 commit 41e15cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-266/IncorrectPrivilegeAssignment.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
fchmod(fileno(fp), 0555 & ~curumsk); // GOOD
99
...
1010
umask(0666);
11-
chmod(0666); // BAD
11+
chmod(pathname, 0666); // BAD
1212
...
1313
umask(0022);
14-
chmod(0666); // GOOD
14+
chmod(pathname, 0666); // GOOD
1515
...

0 commit comments

Comments
 (0)