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>
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
" 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
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2140,
/**/
2139,
/**/