diff options
author | B. Watson <urchlay@slackware.uk> | 2024-12-17 22:50:30 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-12-17 22:50:30 -0500 |
commit | 6a1e3a32397c313c46370f0bbff7da5801fa3b7b (patch) | |
tree | 2fda894ce3261ef28fd360dacbeaee91b054f580 | |
parent | f0e0a74cbf43d771075ad2d801197b8072d5b15c (diff) | |
download | uxd-6a1e3a32397c313c46370f0bbff7da5801fa3b7b.tar.gz |
don't check bad sequences for out-of-range
-rw-r--r-- | uxd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)) |