]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0524: spell: buffer overflow with many affix or compound flags v9.2.0524
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Sat, 23 May 2026 19:56:10 +0000 (19:56 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 23 May 2026 19:56:10 +0000 (19:56 +0000)
commit9a920e82546dace49a0a88dced80d29a39efbdb0
treedcfc3d026ed4237430ab857ef00b388720bef21e
parent5e3056ee83f321dfbb597975e955b0e4f9058280
patch 9.2.0524: spell: buffer overflow with many affix or compound flags

Problem:  spell: a word in a .dic file with many postponed prefix or
          compound flags overflows the fixed-size store_afflist[MAXWLEN]
          buffer in get_pfxlist() and get_compflags().
Solution: Add bounds checks (Yasuhiro Matsumoto).

closes: #20286

Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/spell.txt
runtime/doc/tags
src/errors.h
src/po/vim.pot
src/spellfile.c
src/testdir/test_spellfile.vim
src/version.c