diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-04-11 07:39:54 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-10 23:39:54 +0000 |
| commit | 4f7b6083e5fe13ae0474520c769e1d3aeb25d393 (patch) | |
| tree | 34ccec993a096b24658a500a2c6c29d09f96cce1 /scripts/lintcommit.lua | |
| parent | 5ecff6c96f535f2a6e102d801afbd84dbec5c011 (diff) | |
| download | rneovim-4f7b6083e5fe13ae0474520c769e1d3aeb25d393.tar.gz rneovim-4f7b6083e5fe13ae0474520c769e1d3aeb25d393.tar.bz2 rneovim-4f7b6083e5fe13ae0474520c769e1d3aeb25d393.zip | |
vim-patch:9.2.0331: spellfile: stack buffer overflows in spell file generation (#38948)
Problem: spell_read_aff() uses sprintf() into a fixed-size stack buffer
without bounds checking. store_aff_word() uses STRCAT() to
append attacker-controlled strings into newword[MAXWLEN] without
checking remaining space. Both are reachable via :mkspell with
crafted .aff/.dic files (xinyi234)
Solution: Replace sprintf() with vim_snprintf() in spell_read_aff().
Replace STRCAT() with STRNCAT() with explicit remaining-space
calculation in store_aff_word().
closes: vim/vim#19944
https://github.com/vim/vim/commit/07faa961a05bc5ea007ab70ff483ea1b32c3371d
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'scripts/lintcommit.lua')
0 files changed, 0 insertions, 0 deletions