schema helpers BUGFIX added isprint protection
The standards require that the argument for isprint function is either
EOF or a value that is representable in the type unsigned char.
@@ -843,7 +843,7 @@ lysp_check_identifierchar(struct lys_parser_ctx *ctx, uint32_t c, ly_bool first,
{
if (first || (prefix && ((*prefix) == 1))) {
if (!is_yangidentstartchar(c)) {
- if (isprint(c)) {
+ if ((c < UCHAR_MAX) && isprint(c)) {
LOGVAL_PARSER(ctx, LYVE_SYNTAX_YANG, "Invalid identifier first character '%c' (0x%04x).", (char)c, c);
} else {
LOGVAL_PARSER(ctx, LYVE_SYNTAX_YANG, "Invalid identifier first character 0x%04x.", c);
