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:
ihsinme
2021-01-14 17:21:19 +03:00
committed by GitHub
parent 7f5e5fcb99
commit cd0d2a5692

View File

@@ -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"
)
)
}