[vim/vim] test(viminfo): catch E342 in length overflow test (PR #19891)

5 views
Skip to first unread message

mattn

unread,
Apr 2, 2026, 3:05:29 AM (23 hours ago) Apr 2
to vim/vim, Subscribed

Test_viminfo_len_overflow tries to allocate ~4GB, which may throw E342
(out of memory) depending on the platform's memory allocation behavior.
This is an acceptable outcome since the test's purpose is to verify
that Vim does not crash on a crafted viminfo entry.

Introduced in b2e55ed

cc @chrisbra


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

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

Commit Summary

  • d9f1ce7 test(viminfo): catch E342 in length overflow test

File Changes

(1 file)

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/19891@github.com>

Christian Brabandt

unread,
Apr 2, 2026, 12:30:01 PM (14 hours ago) Apr 2
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19891)

thanks


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

Christian Brabandt

unread,
Apr 2, 2026, 12:35:43 PM (13 hours ago) Apr 2
to vim/vim, Subscribed

Closed #19891 via b2ff915.


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

Reply all
Reply to author
Forward
0 new messages