mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Update cpp/ql/src/experimental/Security/CWE/CWE-266/IncorrectPrivilegeAssignment.ql
This commit is contained in:
committed by
GitHub
parent
d1c89562b8
commit
3fa2516898
@@ -56,7 +56,7 @@ where
|
||||
(
|
||||
fctmp.getArgument(1).getValue().matches("%a%") or
|
||||
fctmp.getArgument(1).getValue().matches("%w%") or
|
||||
// unfortunately cannot use numeric value here because // O_APPEND is defined differently on different OSes:
|
||||
// unfortunately cannot use numeric value here because // O_CREAT is defined differently on different OSes:
|
||||
// https://github.com/red/red/blob/92feb0c0d5f91e087ab35fface6906afbf99b603/runtime/definitions.reds#L477-L491
|
||||
// this may introduce false negatives
|
||||
fctmp.getArgument(1).(BitwiseOrExpr).getAChild*().getValueText().matches("O_CREAT")
|
||||
|
||||
Reference in New Issue
Block a user