Module FunctionWithWrappers
Provides predicates for identifying functions that wrap other functions,
passing the same arguments from the outer call into the inner call. In the
following example MyMalloc
wraps a call to malloc
, passing in the size
parameter:
void *MyMalloc(size_t size)
{
void *ptr = malloc(size);
// ... additional logic?
return ptr;
}
Import path
import semmle.code.cpp.security.FunctionWithWrappers
Imports
PrintfLike | Provides a predicate for identifying formatting functions like |
cpp | Provides classes and predicates for working with C/C++ code. |
Classes
FunctionWithWrappers | An abstract class for representing functions that may have wrapper functions. Wrapper functions propagate an argument (without any evident changes) to this function through one or more steps in a call chain. |
PrintfLikeFunction | A |