diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-24 20:05:50 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-24 20:05:50 +0200 |
commit | 07399e7f078729b03451ba2b342d0cb434ab75cf (patch) | |
tree | 167f34b2f2d897179222953e10d7bfd319f034dd /src/spell.h | |
parent | b3ea36c5bcb88b6a05a66347eedd461e9385103f (diff) | |
download | vim-git-07399e7f078729b03451ba2b342d0cb434ab75cf.tar.gz |
patch 8.2.1521: reading past end of buffer when reading spellfilev8.2.1521
Problem: Reading past end of buffer when reading spellfile. (Yegappan
Lakshmanan)
Solution: Store the byte length and check for it.
Diffstat (limited to 'src/spell.h')
-rw-r--r-- | src/spell.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/spell.h b/src/spell.h index b444145be..7e4f813b4 100644 --- a/src/spell.h +++ b/src/spell.h @@ -66,6 +66,7 @@ struct slang_S int 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 |