diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-27 22:21:39 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-29 18:36:38 -0400 |
commit | 5329cb2e5c2c765a062875ef1c2542a270881d72 (patch) | |
tree | a4c3e0300fa4a09aab996e9d38c6cb937beac084 /src/nvim/spell_defs.h | |
parent | cb6b5e5540e737fdf391905f87eb3ed3c98b0fbd (diff) | |
download | rneovim-5329cb2e5c2c765a062875ef1c2542a270881d72.tar.gz rneovim-5329cb2e5c2c765a062875ef1c2542a270881d72.tar.bz2 rneovim-5329cb2e5c2c765a062875ef1c2542a270881d72.zip |
vim-patch:8.2.1521: reading past end of buffer when reading spellfile
Problem: Reading past end of buffer when reading spellfile. (Yegappan
Lakshmanan)
Solution: Store the byte length and check for it.
https://github.com/vim/vim/commit/07399e7f078729b03451ba2b342d0cb434ab75cf
Diffstat (limited to 'src/nvim/spell_defs.h')
-rw-r--r-- | src/nvim/spell_defs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/spell_defs.h b/src/nvim/spell_defs.h index 034c580b3e..05667f060e 100644 --- a/src/nvim/spell_defs.h +++ b/src/nvim/spell_defs.h @@ -119,6 +119,7 @@ struct slang_S { bool sl_add; // true if it's a .add file. char_u *sl_fbyts; // case-folded word bytes + long sl_fbyts_len; // length of sl_fbyts idx_T *sl_fidxs; // case-folded word indexes char_u *sl_kbyts; // keep-case word bytes idx_T *sl_kidxs; // keep-case word indexes |