|
Karsten Hopp |
26a9ca |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
26a9ca |
Subject: Patch 7.4.815
|
|
Karsten Hopp |
26a9ca |
Fcc: outbox
|
|
Karsten Hopp |
26a9ca |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
26a9ca |
Mime-Version: 1.0
|
|
Karsten Hopp |
26a9ca |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
26a9ca |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
26a9ca |
------------
|
|
Karsten Hopp |
26a9ca |
|
|
Karsten Hopp |
26a9ca |
Patch 7.4.815
|
|
Karsten Hopp |
26a9ca |
Problem: Invalid memory access when doing ":call g:".
|
|
Karsten Hopp |
26a9ca |
Solution: Check for an empty name. (Dominique Pelle)
|
|
Karsten Hopp |
26a9ca |
Files: src/eval.c
|
|
Karsten Hopp |
26a9ca |
|
|
Karsten Hopp |
26a9ca |
|
|
Karsten Hopp |
26a9ca |
*** ../vim-7.4.814/src/eval.c 2015-08-11 14:26:03.594931131 +0200
|
|
Karsten Hopp |
26a9ca |
--- src/eval.c 2015-08-11 15:44:34.457092477 +0200
|
|
Karsten Hopp |
26a9ca |
***************
|
|
Karsten Hopp |
26a9ca |
*** 21371,21376 ****
|
|
Karsten Hopp |
26a9ca |
--- 21371,21377 ----
|
|
Karsten Hopp |
26a9ca |
|
|
Karsten Hopp |
26a9ca |
/*
|
|
Karsten Hopp |
26a9ca |
* Find the hashtab used for a variable name.
|
|
Karsten Hopp |
26a9ca |
+ * Return NULL if the name is not valid.
|
|
Karsten Hopp |
26a9ca |
* Set "varname" to the start of name without ':'.
|
|
Karsten Hopp |
26a9ca |
*/
|
|
Karsten Hopp |
26a9ca |
static hashtab_T *
|
|
Karsten Hopp |
26a9ca |
***************
|
|
Karsten Hopp |
26a9ca |
*** 21380,21385 ****
|
|
Karsten Hopp |
26a9ca |
--- 21381,21388 ----
|
|
Karsten Hopp |
26a9ca |
{
|
|
Karsten Hopp |
26a9ca |
hashitem_T *hi;
|
|
Karsten Hopp |
26a9ca |
|
|
Karsten Hopp |
26a9ca |
+ if (name[0] == NUL)
|
|
Karsten Hopp |
26a9ca |
+ return NULL;
|
|
Karsten Hopp |
26a9ca |
if (name[1] != ':')
|
|
Karsten Hopp |
26a9ca |
{
|
|
Karsten Hopp |
26a9ca |
/* The name must not start with a colon or #. */
|
|
Karsten Hopp |
26a9ca |
*** ../vim-7.4.814/src/version.c 2015-08-11 15:27:07.624943222 +0200
|
|
Karsten Hopp |
26a9ca |
--- src/version.c 2015-08-11 15:44:59.056813528 +0200
|
|
Karsten Hopp |
26a9ca |
***************
|
|
Karsten Hopp |
26a9ca |
*** 743,744 ****
|
|
Karsten Hopp |
26a9ca |
--- 743,746 ----
|
|
Karsten Hopp |
26a9ca |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
26a9ca |
+ /**/
|
|
Karsten Hopp |
26a9ca |
+ 815,
|
|
Karsten Hopp |
26a9ca |
/**/
|
|
Karsten Hopp |
26a9ca |
|
|
Karsten Hopp |
26a9ca |
--
|
|
Karsten Hopp |
26a9ca |
There are 2 kinds of people in my world: those who know Unix, Perl, Vim, GNU,
|
|
Karsten Hopp |
26a9ca |
Linux, etc, and those who know COBOL. It gets very difficult for me at
|
|
Karsten Hopp |
26a9ca |
parties, not knowing which group to socialise with :-)
|
|
Karsten Hopp |
26a9ca |
Sitaram Chamarty
|
|
Karsten Hopp |
26a9ca |
|
|
Karsten Hopp |
26a9ca |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
26a9ca |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
26a9ca |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
26a9ca |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|