From: Christian Brabandt Date: Sat, 7 Feb 2026 15:41:43 +0000 (+0000) Subject: patch 9.1.2140: tests: Test_wayland_protocol_error_overflow() fails X-Git-Tag: v9.1.2140^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35c428b02c0b8cee77e65d2a560e3c0b4c526395;p=thirdparty%2Fvim.git patch 9.1.2140: tests: Test_wayland_protocol_error_overflow() fails Problem: tests: Test_wayland_protocol_error_overflow() fails (after v9.1.2139) Solution: try/catch the expected error Signed-off-by: Christian Brabandt --- diff --git a/runtime/doc/version9.txt b/runtime/doc/version9.txt index 989c7c07b0..e2bc66be04 100644 --- a/runtime/doc/version9.txt +++ b/runtime/doc/version9.txt @@ -52523,4 +52523,9 @@ Problem: Buffer overflow in :wlrestore command, caused by assuming Solution: Use correct buffer size (512 bytes) in vim_vsnprintf() to properly truncate long messages. +Patch 9.1.2140 +Problem: tests: Test_wayland_protocol_error_overflow() fails + (after v9.1.2139) +Solution: try/catch the expected error + vim:tw=78:ts=8:noet:ft=help:norl:fdm=manual:nofoldenable diff --git a/src/testdir/test_wayland.vim b/src/testdir/test_wayland.vim index c18b6b5d0c..5b801c9a44 100644 --- a/src/testdir/test_wayland.vim +++ b/src/testdir/test_wayland.vim @@ -616,7 +616,10 @@ endfunc " Test for heap buffer overflow in wayland log handler func Test_wayland_protocol_error_overflow() - exe "wlrestore " .. repeat('X', 4096) + try + exe "wlrestore " .. repeat('X', 4096) + catch /^Vim(wlrestore):/ + endtry endfunc " vim: shiftwidth=2 sts=2 expandtab diff --git a/src/version.c b/src/version.c index a892d87c78..e6b867cf6d 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2140, /**/ 2139, /**/