From: Yasuhiro Matsumoto Date: Thu, 2 Apr 2026 16:30:05 +0000 (+0000) Subject: patch 9.2.0282: tests: Test_viminfo_len_overflow() fails X-Git-Tag: v9.2.0282^0 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b2ff915fe48d66a3d252b87f77e1635aa01cca51;p=thirdparty%2Fvim.git 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 Signed-off-by: Christian Brabandt --- diff --git a/src/testdir/test_viminfo.vim b/src/testdir/test_viminfo.vim index b3a8b91cb1..de987ef278 100644 --- a/src/testdir/test_viminfo.vim +++ b/src/testdir/test_viminfo.vim @@ -1385,8 +1385,13 @@ func Test_viminfo_len_overflow() \ '|