32 #include "safeclib_private.h" 33 #include "safe_mem_constraint.h" 34 #include "mem_primitives_lib.h" 35 #include "safe_mem_lib.h" 79 memmove32_s (uint32_t *dest, rsize_t dmax,
const uint32_t *src, rsize_t smax)
90 return (RCNEGATE(ESNULLP));
96 return (RCNEGATE(ESZEROL));
99 if (dmax > RSIZE_MAX_MEM32 || smax > RSIZE_MAX_MEM32) {
102 return (RCNEGATE(ESLEMAX));
109 return (RCNEGATE(ESZEROL));
116 return (RCNEGATE(ESNOSPC));
123 return (RCNEGATE(ESNULLP));
131 return (RCNEGATE(EOK));
void mem_prim_set32(uint32_t *dest, uint32_t len, uint32_t value)
Sets len uint32_t's starting at dest to the specified value.
void mem_prim_move32(uint32_t *dest, const uint32_t *src, uint32_t len)
Moves at most len of uint32_t's from src to dest.
errno_t memmove32_s(uint32_t *dest, rsize_t dmax, const uint32_t *src, rsize_t smax)
The memmove32_s function copies smax uint32_ts from the region pointed to by src into the region poin...
void invoke_safe_mem_constraint_handler(const char *msg, void *ptr, errno_t error)
Invokes the currently set constraint handler or the default.