mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Update cpp/ql/src/experimental/Security/CWE/CWE-14/CompilerRemovalOfCodeToClearBuffers.ql
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
This commit is contained in:
@@ -98,10 +98,10 @@ class CompilerRemovaMemset extends FunctionCall {
|
||||
exists(Compilation c |
|
||||
c.getAFileCompiled() = this.getFile() and
|
||||
(
|
||||
c.getArgument(2).toString().matches("%gcc%") or
|
||||
c.getArgument(2).toString().matches("%g++%") or
|
||||
c.getArgument(2).toString().matches("%clang%") or
|
||||
c.getArgument(2).toString() = "--force-recompute"
|
||||
c.getArgument(2).matches("%gcc%") or
|
||||
c.getArgument(2).matches("%g++%") or
|
||||
c.getArgument(2).matches("%clang%") or
|
||||
c.getArgument(2) = "--force-recompute"
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user