From 6a1e3a32397c313c46370f0bbff7da5801fa3b7b Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 17 Dec 2024 22:50:30 -0500 Subject: don't check bad sequences for out-of-range --- uxd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'uxd.c') diff --git a/uxd.c b/uxd.c index 38c5862..40febb0 100644 --- a/uxd.c +++ b/uxd.c @@ -648,7 +648,8 @@ int dump_utf8_char(void) { } } - if(is_out_of_range(cont_count, bytes)) + /* don't check bad sequences for out-of-range */ + if(!bad && is_out_of_range(cont_count, bytes)) bad = 1; if(is_overlong(cont_count, bytes)) -- cgit v1.2.3