@@ -7,7 +7,7 @@ import semmle.code.cpp.models.interfaces.SideEffect
77private class PureStrFunction extends AliasFunction , ArrayFunction , TaintFunction ,
88 SideEffectFunction {
99 PureStrFunction ( ) {
10- hasGlobalOrStdishName ( [
10+ hasGlobalOrStdOrBslName ( [
1111 atoi ( ) , "strcasestr" , "strchnul" , "strchr" , "strchrnul" , "strstr" , "strpbrk" , "strrchr" ,
1212 "strspn" , strtol ( ) , strrev ( ) , strcmp ( ) , strlwr ( ) , strupr ( )
1313 ] )
@@ -92,7 +92,7 @@ private string strcmp() {
9292/** String standard `strlen` function, and related functions for computing string lengths. */
9393private class StrLenFunction extends AliasFunction , ArrayFunction , SideEffectFunction {
9494 StrLenFunction ( ) {
95- hasGlobalOrStdishName ( [ "strlen" , "strnlen" , "wcslen" ] )
95+ hasGlobalOrStdOrBslName ( [ "strlen" , "strnlen" , "wcslen" ] )
9696 or
9797 hasGlobalName ( [ "_mbslen" , "_mbslen_l" , "_mbstrlen" , "_mbstrlen_l" ] )
9898 }
@@ -125,7 +125,7 @@ private class StrLenFunction extends AliasFunction, ArrayFunction, SideEffectFun
125125
126126/** Pure functions. */
127127private class PureFunction extends TaintFunction , SideEffectFunction {
128- PureFunction ( ) { hasGlobalOrStdishName ( [ "abs" , "labs" ] ) }
128+ PureFunction ( ) { hasGlobalOrStdOrBslName ( [ "abs" , "labs" ] ) }
129129
130130 override predicate hasTaintFlow ( FunctionInput input , FunctionOutput output ) {
131131 exists ( ParameterIndex i |
@@ -144,7 +144,7 @@ private class PureFunction extends TaintFunction, SideEffectFunction {
144144private class PureMemFunction extends AliasFunction , ArrayFunction , TaintFunction ,
145145 SideEffectFunction {
146146 PureMemFunction ( ) {
147- hasGlobalOrStdishName ( [
147+ hasGlobalOrStdOrBslName ( [
148148 "memchr" , "__builtin_memchr" , "memrchr" , "rawmemchr" , "memcmp" , "__builtin_memcmp" , "memmem"
149149 ] ) or
150150 this .hasGlobalName ( "memfrob" )
0 commit comments