mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
vim-patch:9.0.1992: [security] segfault in exmode
Problem: segfault in exmode when redrawing
Solution: skip gui_scroll when exmode_active
20d161ace3
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
3ab0e296c6
commit
b6200fbdf2
2
test/old/testdir/crash/crash_scrollbar
Normal file
2
test/old/testdir/crash/crash_scrollbar
Normal file
@ -0,0 +1,2 @@
|
||||
" this goes to insert mode and presses key k_VerScrollbar which may cause a redraw in exmode, which used ot crash Vim
|
||||
norm o€ùX
|
@ -72,6 +72,12 @@ func Test_crash1()
|
||||
\ ' || echo "crash 8: [OK]" >> X_crash1_result.txt' .. "\<cr>")
|
||||
call TermWait(buf, 3000)
|
||||
|
||||
let file = 'crash/crash_scrollbar'
|
||||
let args = printf(cmn_args, vim, file)
|
||||
call term_sendkeys(buf, args ..
|
||||
\ ' && echo "crash 9: [OK]" >> X_crash1_result.txt' .. "\<cr>")
|
||||
call TermWait(buf, 1000)
|
||||
|
||||
" clean up
|
||||
exe buf .. "bw!"
|
||||
|
||||
@ -86,6 +92,7 @@ func Test_crash1()
|
||||
\ 'crash 6: [OK]',
|
||||
\ 'crash 7: [OK]',
|
||||
\ 'crash 8: [OK]',
|
||||
\ 'crash 9: [OK]',
|
||||
\ ]
|
||||
|
||||
call assert_equal(expected, getline(1, '$'))
|
||||
|
Loading…
Reference in New Issue
Block a user