comparison src/testdir/test_help.vim @ 26276:35d000f3d591 v8.2.3669

patch 8.2.3669: buffer overflow with long help argument Commit: https://github.com/vim/vim/commit/bd228fd097b41a798f90944b5d1245eddd484142 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 25 10:50:12 2021 +0000 patch 8.2.3669: buffer overflow with long help argument Problem: Buffer overflow with long help argument. Solution: Use snprintf().
author Bram Moolenaar <Bram@vim.org>
date Thu, 25 Nov 2021 12:00:07 +0100
parents 4c1b6f3eb96b
children e3f3108a780a
comparison
equal deleted inserted replaced
26275:6d8c6d07b3db 26276:35d000f3d591
132 call assert_equal(14, winheight(0)) 132 call assert_equal(14, winheight(0))
133 set helpheight& cmdheight=1 133 set helpheight& cmdheight=1
134 close 134 close
135 endfunc 135 endfunc
136 136
137 func Test_help_long_argument()
138 try
139 exe 'help \%' .. repeat('0', 1021)
140 catch
141 call assert_match("E149:", v:exception)
142 endtry
143 endfunc
144
145
137 " vim: shiftwidth=2 sts=2 expandtab 146 " vim: shiftwidth=2 sts=2 expandtab