safec 3.8.0
Safe C Library - ISO TR24731 Bounds Checking Interface
|
#include "safe_mem_lib.h"
Functions | |
EXTERN void | invoke_safe_mem_constraint_handler (const char *msg, void *ptr, errno_t error) |
Invokes the currently set thread-safe or not constraint handler or the default. | |
static void | handle_mem_error (void *restrict dest, rsize_t dmax, const char *err_msg, errno_t err_code) |
void | handle_mem_bos_chk_warn (const char *restrict func, void *restrict dest, const rsize_t dmax, const size_t destbos) |
Invokes the currently set thread-safe or not constraint handler or the default.
Can be disabled via --disable-constraint-handler
*msg | Pointer to the message describing the error. |
*ptr | Pointer to associated data. Can be NULL. |
error | The error code encountered. |
|
inlinestatic |
void handle_mem_bos_chk_warn | ( | const char *restrict | func, |
void *restrict | dest, | ||
const rsize_t | dmax, | ||
const size_t | destbos | ||
) |