aboutsummaryrefslogtreecommitdiff
path: root/uxd.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-12-17 22:50:30 -0500
committerB. Watson <urchlay@slackware.uk>2024-12-17 22:50:30 -0500
commit6a1e3a32397c313c46370f0bbff7da5801fa3b7b (patch)
tree2fda894ce3261ef28fd360dacbeaee91b054f580 /uxd.c
parentf0e0a74cbf43d771075ad2d801197b8072d5b15c (diff)
downloaduxd-6a1e3a32397c313c46370f0bbff7da5801fa3b7b.tar.gz
don't check bad sequences for out-of-range
Diffstat (limited to 'uxd.c')
-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))