diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-02-19 08:06:39 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2026-02-19 08:19:44 +0800 |
| commit | 134782b99effbbed5f1fdba6e547c38e39204c4a (patch) | |
| tree | 2d21a25543173ec4fd6c059e0a1d44f4fd71506f /test/functional/vimscript/executable_spec.lua | |
| parent | 6877fef972db5e56e1dec0e91fadc43d8eb05af9 (diff) | |
vim-patch:9.2.0023: fix integer overflow in ml_append_int() for long lines
Problem: ml_append_int() crashes when appending lines near MAXCOL
length due to signed integer overflow in space_needed
calculation.
Solution: Change 'space_needed' from int to long to handle the
'len + INDEX_SIZE' computation without overflow. Update
db_free comparison casts from (int) to (long) to match.
Note: supported by AI claude
related: vim/vim#17935
related: vim/vim#18953
related: vim/vim#19332
https://github.com/vim/vim/commit/0ece393844a4433e4dc69cde6fe88f99ed7db100
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions
