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

Skip to content

Commit 8053529

Browse files
authored
Update CompilerRemovalOfCodeToClearBuffers.ql
1 parent 10ab1d9 commit 8053529

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import semmle.code.cpp.dataflow.DataFlow
1818
*/
1919
class CompilerRemovaMemset extends FunctionCall {
2020
CompilerRemovaMemset() {
21-
this.getTarget().hasName("memset") and
21+
this.getTarget().hasGlobalOrStdName("memset") and
2222
exists(DataFlow::Node source, DataFlow::Node sink, LocalVariable isv, Expr exp |
2323
DataFlow::localFlow(source, sink) and
2424
this.getArgument(0) = isv.getAnAccess() and

0 commit comments

Comments
 (0)