aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uxd.c3
1 files changed, 2 insertions, 1 deletions
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))