Found with afl-fuzz and ASAN.
Not considered a security vulnerability as filter files are trusted input.
}
else class_charcount++;
ptr++;
}
else class_charcount++;
ptr++;
+ if (*ptr == 0)
+ {
+ *errorptr = ERR6;
+ goto PCRE_ERROR_RETURN;
+ }
- while (*ptr != 0 && *ptr != ']');
/* Repeats for negated single chars are handled by the general code */
/* Repeats for negated single chars are handled by the general code */