Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cd0d2a5

Browse files
ihsinmeMathiasVP
andauthored
Update cpp/ql/src/experimental/Security/CWE/CWE-14/CompilerRemovalOfCodeToClearBuffers.ql
Co-authored-by: Mathias Vorreiter Pedersen <[email protected]>
1 parent 7f5e5fc commit cd0d2a5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cpp/ql/src/experimental/Security/CWE/CWE-14/CompilerRemovalOfCodeToClearBuffers.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ class CompilerRemovaMemset extends FunctionCall {
9898
exists(Compilation c |
9999
c.getAFileCompiled() = this.getFile() and
100100
(
101-
c.getArgument(2).toString().matches("%gcc%") or
102-
c.getArgument(2).toString().matches("%g++%") or
103-
c.getArgument(2).toString().matches("%clang%") or
104-
c.getArgument(2).toString() = "--force-recompute"
101+
c.getArgument(2).matches("%gcc%") or
102+
c.getArgument(2).matches("%g++%") or
103+
c.getArgument(2).matches("%clang%") or
104+
c.getArgument(2) = "--force-recompute"
105105
)
106106
)
107107
}

0 commit comments

Comments
 (0)