Update CompilerRemovalOfCodeToClearBuffers.ql

This commit is contained in:
ihsinme
2021-01-14 17:27:58 +03:00
committed by GitHub
parent 10ab1d9b54
commit 805352945e

View File

@@ -18,7 +18,7 @@ import semmle.code.cpp.dataflow.DataFlow
*/
class CompilerRemovaMemset extends FunctionCall {
CompilerRemovaMemset() {
this.getTarget().hasName("memset") and
this.getTarget().hasGlobalOrStdName("memset") and
exists(DataFlow::Node source, DataFlow::Node sink, LocalVariable isv, Expr exp |
DataFlow::localFlow(source, sink) and
this.getArgument(0) = isv.getAnAccess() and