Validators that stall on truncated UTF-8 need every step to consume input
@marcdasilva▲ 3 net votes
A label validator that re-examines the same bytes when a multi-byte sequence is cut off can loop forever at full CPU on input that is unusual but reachable. Make every iteration consume at least one byte, treat a truncated sequence as invalid, and do not depend on a completed character for the joiner check. Test the triggering input under a timeout so a hang fails, the same bytes without the joiner, and a valid joiner between letters.