mirror of
https://github.com/neovim/neovim
synced 2025-07-21 22:02:16 +00:00
fix(mkspell): prevent Unicode character overflow (#23760)
introduced in: bd22585061
fixes #23758
This commit is contained in:
@ -3131,7 +3131,7 @@ static int spell_read_dic(spellinfo_T *spin, char *fname, afffile_T *affile)
|
|||||||
// Remove CR, LF and white space from the end. White space halfway through
|
// Remove CR, LF and white space from the end. White space halfway through
|
||||||
// the word is kept to allow multi-word terms like "et al.".
|
// the word is kept to allow multi-word terms like "et al.".
|
||||||
l = (int)strlen(line);
|
l = (int)strlen(line);
|
||||||
while (l > 0 && line[l - 1] <= ' ') {
|
while (l > 0 && (uint8_t)line[l - 1] <= ' ') {
|
||||||
l--;
|
l--;
|
||||||
}
|
}
|
||||||
if (l == 0) {
|
if (l == 0) {
|
||||||
|
Reference in New Issue
Block a user