]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0282: tests: Test_viminfo_len_overflow() fails v9.2.0282
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Thu, 2 Apr 2026 16:30:05 +0000 (16:30 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 2 Apr 2026 16:30:05 +0000 (16:30 +0000)
commitb2ff915fe48d66a3d252b87f77e1635aa01cca51
tree06cbbda8a89c7759e10715060a84442d6936e465
parentc91081d0e5d7b4cf5b467b0a622a3c74ef99a08f
patch 9.2.0282: tests: Test_viminfo_len_overflow() fails

Problem:  tests: Test_viminfo_len_overflow() fails
Solution: Catch E342 (Yasuhiro Matsumoto).

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.

closes: #19891

Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_viminfo.vim
src/version.c