mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 07:58:35 +00:00
vim-patch:8.0.0879: crash when shifting with huge number
Problem: Crash when shifting with huge number.
Solution: Check for overflow. (Dominique Pelle, closes vim/vim#1945)
bae5a17a73
This commit is contained in:
@@ -17,6 +17,14 @@ func Test_block_shift_multibyte()
|
||||
q!
|
||||
endfunc
|
||||
|
||||
func Test_block_shift_overflow()
|
||||
" This used to cause a multiplication overflow followed by a crash.
|
||||
new
|
||||
normal ii
|
||||
exe "normal \<C-V>876543210>"
|
||||
q!
|
||||
endfunc
|
||||
|
||||
func Test_Visual_ctrl_o()
|
||||
new
|
||||
call setline(1, ['one', 'two', 'three'])
|
||||
|
Reference in New Issue
Block a user