|
|
3ef2ca |
To: vim_dev@googlegroups.com
|
|
|
3ef2ca |
Subject: Patch 7.4.513
|
|
|
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.513
|
|
|
3ef2ca |
Problem: Crash because reference count is wrong for list returned by
|
|
|
3ef2ca |
getreg().
|
|
|
3ef2ca |
Solution: Increment the reference count. (Kimmy Lindvall)
|
|
|
3ef2ca |
Files: src/eval.c
|
|
|
3ef2ca |
|
|
|
3ef2ca |
|
|
|
3ef2ca |
*** ../vim-7.4.512/src/eval.c 2014-11-05 18:05:48.656441306 +0100
|
|
|
3ef2ca |
--- src/eval.c 2014-11-12 17:07:32.695012604 +0100
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 12008,12013 ****
|
|
|
3ef2ca |
--- 12008,12015 ----
|
|
|
3ef2ca |
rettv->v_type = VAR_LIST;
|
|
|
3ef2ca |
rettv->vval.v_list = (list_T *)get_reg_contents(regname,
|
|
|
3ef2ca |
(arg2 ? GREG_EXPR_SRC : 0) | GREG_LIST);
|
|
|
3ef2ca |
+ if (rettv->vval.v_list != NULL)
|
|
|
3ef2ca |
+ ++rettv->vval.v_list->lv_refcount;
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
else
|
|
|
3ef2ca |
{
|
|
|
3ef2ca |
*** ../vim-7.4.512/src/version.c 2014-11-12 16:10:44.258085148 +0100
|
|
|
3ef2ca |
--- src/version.c 2014-11-12 17:06:37.443703083 +0100
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 743,744 ****
|
|
|
3ef2ca |
--- 743,746 ----
|
|
|
3ef2ca |
{ /* Add new patch number below this line */
|
|
|
3ef2ca |
+ /**/
|
|
|
3ef2ca |
+ 513,
|
|
|
3ef2ca |
/**/
|
|
|
3ef2ca |
|
|
|
3ef2ca |
--
|
|
|
3ef2ca |
Save the plankton - eat a whale.
|
|
|
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 ///
|