[vim/vim] Improve handling of overlong single lines (PR #19332)

6 views
Skip to first unread message

Christian Brabandt

unread,
2:09 PM (5 hours ago) 2:09 PM
to vim/vim, Subscribed

Problem: reading files with very long lines crashes Vim
Solution: break long lines, use (long) instead of (int) to handle
the line length so that it doesn't overflow

fixes: #17935
related: #18953

Note: I used Claude to help with this.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19332

Commit Summary

  • fb08807 fix integer overflow in ml_append_int() for long lines
  • a133be1 Reading files with very long lines crashes with a segfault due to overflow

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19332@github.com>

Reply all
Reply to author
Forward
0 new messages