mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.811
Problem: Invalid memory access when using "exe 'sc'".
Solution: Avoid going over the end of the string. (Dominique Pelle)
204b93f958
This commit is contained in:
parent
2b2f9ccf8c
commit
f20818de31
@ -2348,8 +2348,11 @@ static char_u *find_command(exarg_T *eap, int *full)
|
||||
eap->cmdidx = CMD_k;
|
||||
++p;
|
||||
} else if (p[0] == 's'
|
||||
&& ((p[1] == 'c' && p[2] != 's' && p[2] != 'r'
|
||||
&& p[3] != 'i' && p[4] != 'p')
|
||||
&& ((p[1] == 'c'
|
||||
&& (p[2] == NUL
|
||||
|| (p[2] != 's' && p[2] != 'r'
|
||||
&& (p[3] == NUL
|
||||
|| (p[3] != 'i' && p[4] != 'p')))))
|
||||
|| p[1] == 'g'
|
||||
|| (p[1] == 'i' && p[2] != 'm' && p[2] != 'l' && p[2] != 'g')
|
||||
|| p[1] == 'I'
|
||||
|
@ -477,7 +477,7 @@ static int included_patches[] = {
|
||||
// 814,
|
||||
813,
|
||||
// 812,
|
||||
// 811,
|
||||
811,
|
||||
810,
|
||||
809,
|
||||
// 808 NA
|
||||
|
Loading…
Reference in New Issue
Block a user