summaryrefslogtreecommitdiff
path: root/lib/charset.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-01-25 11:01:38 -0500
committerTom Rini <trini@konsulko.com>2024-01-25 11:01:38 -0500
commite7f9e5eb584dd0b5d1b1ff82fe607d6da9940cc6 (patch)
tree5d78cc0c1339a9d7196876aa029f6e94ca247e72 /lib/charset.c
parent15e7927b5a2d33666af19879577bf0c30ab088fe (diff)
parent53c3e386063b9e1ab955d4658a035f1eea8a1cc0 (diff)
Merge branch '2024-01-24-assorted-fixes-and-updates'
- Increase SYS_MAXARGS default, verdin-am62 improvements (and required cleanup), assorted cleanups throughout the code base.
Diffstat (limited to 'lib/charset.c')
-rw-r--r--lib/charset.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/charset.c b/lib/charset.c
index 89057ef7ce2..2b43175b1d9 100644
--- a/lib/charset.c
+++ b/lib/charset.c
@@ -570,6 +570,10 @@ int utf8_to_utf32_stream(u8 c, char *buffer)
}
if (pos == end)
return 0;
+ /*
+ * Appending the byte lead to an invalid UTF-8 byte sequence.
+ * Consider it as the start of a new code sequence.
+ */
*buffer = 0;
}
}