3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.245
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.245
3ef2ca
Problem:    Crash for "vim -u NONE -N  -c '&&'".
3ef2ca
Solution:   Check for the pattern to be NULL. (Dominique Pelle)
3ef2ca
Files:	    src/ex_cmds.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.244/src/ex_cmds.c	2014-04-01 17:49:40.136891378 +0200
3ef2ca
--- src/ex_cmds.c	2014-04-04 18:56:00.159939544 +0200
3ef2ca
***************
3ef2ca
*** 4425,4431 ****
3ef2ca
       * TODO: find a generic solution to make line-joining operations more
3ef2ca
       * efficient, avoid allocating a string that grows in size.
3ef2ca
       */
3ef2ca
!     if (STRCMP(pat, "\\n") == 0 && STRLEN(pat) == 2
3ef2ca
  	    && *sub == NUL
3ef2ca
  	    && (*cmd == NUL || (cmd[1] == NUL && (*cmd == 'g' || *cmd == 'l'
3ef2ca
  					     || *cmd == 'p' || *cmd == '#'))))
3ef2ca
--- 4425,4431 ----
3ef2ca
       * TODO: find a generic solution to make line-joining operations more
3ef2ca
       * efficient, avoid allocating a string that grows in size.
3ef2ca
       */
3ef2ca
!     if (pat != NULL && STRCMP(pat, "\\n") == 0
3ef2ca
  	    && *sub == NUL
3ef2ca
  	    && (*cmd == NUL || (cmd[1] == NUL && (*cmd == 'g' || *cmd == 'l'
3ef2ca
  					     || *cmd == 'p' || *cmd == '#'))))
3ef2ca
*** ../vim-7.4.244/src/version.c	2014-04-02 23:09:23.003439001 +0200
3ef2ca
--- src/version.c	2014-04-04 18:52:21.519939067 +0200
3ef2ca
***************
3ef2ca
*** 736,737 ****
3ef2ca
--- 736,739 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     245,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
One difference between a man and a machine is that a machine is quiet
3ef2ca
when well oiled.
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///