File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
cpp/ql/src/semmle/code/cpp/models Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11private import implementations.IdentityFunction
22private import implementations.Inet
33private import implementations.Memcpy
4+ private import implementations.Memset
45private import implementations.Printf
56private import implementations.Pure
67private import implementations.Strcat
Original file line number Diff line number Diff line change 11import semmle.code.cpp.Function
22import semmle.code.cpp.models.interfaces.ArrayFunction
33import semmle.code.cpp.models.interfaces.DataFlow
4- import semmle.code.cpp.models.interfaces.Taint
54
65/**
76 * The standard function `memset` and its assorted variants
87 */
9- class MemsetFunction extends ArrayFunction , DataFlowFunction , TaintFunction {
8+ class MemsetFunction extends ArrayFunction , DataFlowFunction {
109 MemsetFunction ( ) {
1110 hasGlobalName ( "memset" ) or
11+ hasGlobalName ( "wmemset" ) or
1212 hasGlobalName ( "bzero" ) or
1313 hasGlobalName ( "__builtin_memset" ) or
14- hasQualifiedName ( "std" , "memset" )
14+ hasGlobalName ( "__builtin_memset_chk" ) or
15+ hasQualifiedName ( "std" , "memset" ) or
16+ hasQualifiedName ( "std" , "wmemset" )
1517 }
1618
1719 override predicate hasArrayOutput ( int bufParam ) { bufParam = 0 }
You can’t perform that action at this time.
0 commit comments