33 #include "safeclib_private.h" 34 #include "safe_mem_constraint.h" 35 #include "mem_primitives_lib.h" 36 #include "safe_mem_lib.h" 73 memset32_s(uint32_t *dest, rsize_t smax, uint32_t value, rsize_t n)
80 return (RCNEGATE(ESNULLP));
86 return (RCNEGATE(ESZEROL));
89 if (smax > RSIZE_MAX_MEM) {
92 return (RCNEGATE(ESLEMAX));
95 if (n > RSIZE_MAX_MEM16) {
111 return (RCNEGATE(err));
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.
errno_t memset32_s(uint32_t *dest, rsize_t smax, uint32_t value, rsize_t n)
Sets len uint32_t starting at dest to the specified value.
void invoke_safe_mem_constraint_handler(const char *msg, void *ptr, errno_t error)
Invokes the currently set constraint handler or the default.