safec
2.1
Safe C Library - ISO TR24731 Bounds Checking Interface
|
#include "safeclib_private.h"
#include "safe_mem_constraint.h"
#include "safe_mem_lib.h"
Go to the source code of this file.
Functions | |
constraint_handler_t | set_mem_constraint_handler_s (constraint_handler_t handler) |
The set_mem_constraint_handler_s function sets the runtime-constraint handler to be handler. More... | |
void | invoke_safe_mem_constraint_handler (const char *msg, void *ptr, errno_t error) |
Invokes the currently set constraint handler or the default. More... | |
Variables | |
static constraint_handler_t | mem_handler = NULL |
constraint_handler_t set_mem_constraint_handler_s | ( | constraint_handler_t | handler | ) |
The set_mem_constraint_handler_s function sets the runtime-constraint handler to be handler.
The runtime-constraint handler is the function to be called when a library function detects a runtime-constraint order:
Definition at line 72 of file safe_mem_constraint.c.
void invoke_safe_mem_constraint_handler | ( | const char * | msg, |
void * | ptr, | ||
errno_t | error | ||
) |
Invokes the currently set constraint handler or the default.
*msg | Pointer to the message describing the error |
*ptr | Pointer to aassociated data. Can be NULL. |
error | The error code encountered. |
Definition at line 95 of file safe_mem_constraint.c.
|
static |
Definition at line 38 of file safe_mem_constraint.c.