32 #include "safeclib_private.h" 33 #include "safe_str_constraint.h" 34 #include "safe_str_lib.h" 79 if (dmax > RSIZE_MAX_STR) {
89 while (*dest && dmax) {
91 if (((*dest >=
'0') && (*dest <=
'9')) ||
92 ((*dest >=
'a') && (*dest <=
'f')) ||
93 ((*dest >=
'A') && (*dest <=
'F'))) {
void invoke_safe_str_constraint_handler(const char *msg, void *ptr, errno_t error)
Invokes the currently set constraint handler or the default.
bool strishex_s(const char *dest, rsize_t dmax)
This function checks that the entire string contains hex characters.