Skip to content

Commit 3fa2516

Browse files
authored
Update cpp/ql/src/experimental/Security/CWE/CWE-266/IncorrectPrivilegeAssignment.ql
1 parent d1c8956 commit 3fa2516

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ where
5656
(
5757
fctmp.getArgument(1).getValue().matches("%a%") or
5858
fctmp.getArgument(1).getValue().matches("%w%") or
59-
// unfortunately cannot use numeric value here because // O_APPEND is defined differently on different OSes:
59+
// unfortunately cannot use numeric value here because // O_CREAT is defined differently on different OSes:
6060
// https://github.com/red/red/blob/92feb0c0d5f91e087ab35fface6906afbf99b603/runtime/definitions.reds#L477-L491
6161
// this may introduce false negatives
6262
fctmp.getArgument(1).(BitwiseOrExpr).getAChild*().getValueText().matches("O_CREAT")

0 commit comments

Comments
 (0)