diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-02-19 08:16:11 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2026-02-19 08:19:44 +0800 |
| commit | fadf5fc8dbf936c22d0905f4e29577b490382b8f (patch) | |
| tree | 5bf76bef835e5708f9f0767de2631299ad03cc99 /test/functional/vimscript/executable_spec.lua | |
| parent | 134782b99effbbed5f1fdba6e547c38e39204c4a (diff) | |
vim-patch:9.2.0024: Reading files with very long lines crashes with a segfault
Problem: Reading files with lines approaching MAXCOL length crashes
with segfault due to colnr_T overflow.
Solution: The split check 'linerest >= MAXCOL' fired too late because
linerest could grow by up to 'size' bytes before the next
check. Change threshold to 'linerest >= MAXCOL - size' to
ensure the line passed to ml_append() stays within colnr_T
range.
Note: supported by AI claude
fixes: vim/vim#17935
closes: vim/vim#18953
closes: vim/vim#19332
https://github.com/vim/vim/commit/6cc291da063e7d9a74a6337d6a80af2b3bcbb5a9
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions
