]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2140: tests: Test_wayland_protocol_error_overflow() fails v9.1.2140
authorChristian Brabandt <cb@256bit.org>
Sat, 7 Feb 2026 15:41:43 +0000 (15:41 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 7 Feb 2026 15:44:10 +0000 (15:44 +0000)
Problem:  tests: Test_wayland_protocol_error_overflow() fails
          (after v9.1.2139)
Solution: try/catch the expected error

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/version9.txt
src/testdir/test_wayland.vim
src/version.c

index 989c7c07b04ce7100c0b451b2abf2badfc817e21..e2bc66be0461e048dde1aeefdd936796ce66904b 100644 (file)
@@ -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
index c18b6b5d0c6ecf532def9511666f056f73ed40fb..5b801c9a4414647340ba78e3b7f475f28404ded1 100644 (file)
@@ -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
index a892d87c789b311d9b0060b41c598b89113c04c3..e6b867cf6d97efea2d4c75dd8373ab276dd47f2d 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2140,
 /**/
     2139,
 /**/