mirror of
https://github.com/vim/vim.git
synced 2025-10-15 07:14:09 -04:00
updated for version 7.4.245
Problem: Crash for "vim -u NONE -N -c '&&'". Solution: Check for the pattern to be NULL. (Dominique Pelle)
This commit is contained in:
@@ -4425,7 +4425,7 @@ do_sub(eap)
|
|||||||
* TODO: find a generic solution to make line-joining operations more
|
* TODO: find a generic solution to make line-joining operations more
|
||||||
* efficient, avoid allocating a string that grows in size.
|
* efficient, avoid allocating a string that grows in size.
|
||||||
*/
|
*/
|
||||||
if (STRCMP(pat, "\\n") == 0 && STRLEN(pat) == 2
|
if (pat != NULL && STRCMP(pat, "\\n") == 0
|
||||||
&& *sub == NUL
|
&& *sub == NUL
|
||||||
&& (*cmd == NUL || (cmd[1] == NUL && (*cmd == 'g' || *cmd == 'l'
|
&& (*cmd == NUL || (cmd[1] == NUL && (*cmd == 'g' || *cmd == 'l'
|
||||||
|| *cmd == 'p' || *cmd == '#'))))
|
|| *cmd == 'p' || *cmd == '#'))))
|
||||||
|
@@ -734,6 +734,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 */
|
||||||
|
/**/
|
||||||
|
245,
|
||||||
/**/
|
/**/
|
||||||
244,
|
244,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user