Checking Run-Time Library Functions
The pointer checker is not supported on
The pointer checker provides checking on C run-time library functions that manipulate memory through pointers. It uses a library of functions that either replace the run-time library function, or wrap them with the appropriate pointer checking mechanisms.
For functions that allocate memory, such as the
malloc()function or various C++ new functions, the wrapper function create bounds information for the pointers returned by the memory allocator.
For functions that copy memory, such as the
memcpy()function, the memory address may contain the pointers along with their associated bounds information. The wrapper functions check for out-of-bounds accesses and ensure that any bounds associated with the copied memory are also copied.
The point checker C run-time function wrappers are located in the
libchkpwraplibrary. To determine which C run-time routines are wrapped, you can examine the entry points in the library. For example, the following will yield a list of entry points:
The returned list will include entry points that signify wrappers. For example,
__chkp_strcpyis the wrapper for