mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -04:00
patch 9.1.0405: tests: xxd buffer overflow fails on 32-bit
Problem: tests: xxd buffer overflow fails on 32-bit Solution: Skip test on 32-bit architecture Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
06bdac1580
commit
b7deb1b69e
@ -412,9 +412,12 @@ func Test_xxd_max_cols()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
|
||||||
" Try to trigger a buffer overflow (#14738)
|
" This used to trigger a buffer overflow (#14738)
|
||||||
func Test_xxd_buffer_overflow()
|
func Test_xxd_buffer_overflow()
|
||||||
CheckUnix
|
CheckUnix
|
||||||
|
if system('file ' .. s:xxd_cmd) =~ '32-bit'
|
||||||
|
throw 'Skipped: test only works on 64-bit architecture'
|
||||||
|
endif
|
||||||
new
|
new
|
||||||
let input = repeat('A', 256)
|
let input = repeat('A', 256)
|
||||||
call writefile(['-9223372036854775808: ' . repeat("\e[1;32m41\e[0m ", 256) . ' ' . repeat("\e[1;32mA\e[0m", 256)], 'Xxdexpected', 'D')
|
call writefile(['-9223372036854775808: ' . repeat("\e[1;32m41\e[0m ", 256) . ' ' . repeat("\e[1;32mA\e[0m", 256)], 'Xxdexpected', 'D')
|
||||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
405,
|
||||||
/**/
|
/**/
|
||||||
404,
|
404,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user