Patch 7.4.815
Problem:    Invalid memory access when doing ":call g:".
Solution:   Check for an empty name. (Dominique Pelle)
Files:      src/eval.c


*** ../vim-7.4.814/src/eval.c   2015-08-11 14:26:03.594931131 +0200
--- src/eval.c  2015-08-11 15:44:34.457092477 +0200
***************
*** 21371,21376 ****
--- 21371,21377 ----
  
  /*
   * Find the hashtab used for a variable name.
+  * Return NULL if the name is not valid.
   * Set "varname" to the start of name without ':'.
   */
      static hashtab_T *
***************
*** 21380,21385 ****
--- 21381,21388 ----
  {
      hashitem_T        *hi;
  
+     if (name[0] == NUL)
+       return NULL;
      if (name[1] != ':')
      {
        /* The name must not start with a colon or #. */
*** ../vim-7.4.814/src/version.c        2015-08-11 15:27:07.624943222 +0200
--- src/version.c       2015-08-11 15:44:59.056813528 +0200
***************
*** 743,744 ****
--- 743,746 ----
  {   /* Add new patch number below this line */
+ /**/
+     815,
  /**/

-- 
There are 2 kinds of people in my world: those who know Unix, Perl, Vim, GNU,
Linux, etc, and those who know COBOL.  It gets very difficult for me at
parties, not knowing which group to socialise with :-)
                                                Sitaram Chamarty

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui