Commit: patch 9.1.2140: tests: Test_wayland_protocol_error_overflow() fails

0 views
Skip to first unread message

Christian Brabandt

unread,
Feb 7, 2026, 4:01:33 PM (19 hours ago) Feb 7
to vim...@googlegroups.com
patch 9.1.2140: tests: Test_wayland_protocol_error_overflow() fails

Commit: https://github.com/vim/vim/commit/35c428b02c0b8cee77e65d2a560e3c0b4c526395
Author: Christian Brabandt <c...@256bit.org>
Date: Sat Feb 7 15:41:43 2026 +0000

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 <c...@256bit.org>

diff --git a/runtime/doc/version9.txt b/runtime/doc/version9.txt
index 989c7c07b..e2bc66be0 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 c18b6b5d0..5b801c9a4 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 a892d87c7..e6b867cf6 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,
/**/
Reply all
Reply to author
Forward
0 new messages