mirror of
https://github.com/github/codeql.git
synced 2026-01-08 20:20:34 +01:00
Update CompilerRemovalOfCodeToClearBuffers.ql
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user