comparison src/spell.h @ 21943:11055d5b74a7 v8.2.1521

patch 8.2.1521: reading past end of buffer when reading spellfile Commit: https://github.com/vim/vim/commit/07399e7f078729b03451ba2b342d0cb434ab75cf Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 24 20:05:50 2020 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Mon, 24 Aug 2020 20:15:05 +0200
parents 6e3dc2d630c2
children d92e0d85923f
comparison
equal deleted inserted replaced
21942:8d0dec0cc0b8 21943:11055d5b74a7
64 char_u *sl_name; // language name "en", "en.rare", "nl", etc. 64 char_u *sl_name; // language name "en", "en.rare", "nl", etc.
65 char_u *sl_fname; // name of .spl file 65 char_u *sl_fname; // name of .spl file
66 int sl_add; // TRUE if it's a .add file. 66 int sl_add; // TRUE if it's a .add file.
67 67
68 char_u *sl_fbyts; // case-folded word bytes 68 char_u *sl_fbyts; // case-folded word bytes
69 long sl_fbyts_len; // length of sl_fbyts
69 idx_T *sl_fidxs; // case-folded word indexes 70 idx_T *sl_fidxs; // case-folded word indexes
70 char_u *sl_kbyts; // keep-case word bytes 71 char_u *sl_kbyts; // keep-case word bytes
71 idx_T *sl_kidxs; // keep-case word indexes 72 idx_T *sl_kidxs; // keep-case word indexes
72 char_u *sl_pbyts; // prefix tree word bytes 73 char_u *sl_pbyts; // prefix tree word bytes
73 idx_T *sl_pidxs; // prefix tree word indexes 74 idx_T *sl_pidxs; // prefix tree word indexes