Karsten Hopp 5dbf14
To: vim_dev@googlegroups.com
Karsten Hopp 5dbf14
Subject: Patch 7.4.541
Karsten Hopp 5dbf14
Fcc: outbox
Karsten Hopp 5dbf14
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 5dbf14
Mime-Version: 1.0
Karsten Hopp 5dbf14
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 5dbf14
Content-Transfer-Encoding: 8bit
Karsten Hopp 5dbf14
------------
Karsten Hopp 5dbf14
Karsten Hopp 5dbf14
Patch 7.4.541
Karsten Hopp 5dbf14
Problem:    Crash when doing a range assign.
Karsten Hopp 5dbf14
Solution:   Check for NULL poiter. (Yukihiro Nakadaira)
Karsten Hopp 5dbf14
Files:	    src/eval.c, src/testdir/test55.in, src/testdir/test55.ok
Karsten Hopp 5dbf14
Karsten Hopp 5dbf14
Karsten Hopp 5dbf14
*** ../vim-7.4.540/src/eval.c	2014-11-19 20:04:43.656099839 +0100
Karsten Hopp 5dbf14
--- src/eval.c	2014-12-07 00:05:47.404278920 +0100
Karsten Hopp 5dbf14
***************
Karsten Hopp 5dbf14
*** 2951,2957 ****
Karsten Hopp 5dbf14
  	/*
Karsten Hopp 5dbf14
  	 * Check whether any of the list items is locked
Karsten Hopp 5dbf14
  	 */
Karsten Hopp 5dbf14
! 	for (ri = rettv->vval.v_list->lv_first; ri != NULL; )
Karsten Hopp 5dbf14
  	{
Karsten Hopp 5dbf14
  	    if (tv_check_lock(ll_li->li_tv.v_lock, lp->ll_name))
Karsten Hopp 5dbf14
  		return;
Karsten Hopp 5dbf14
--- 2951,2957 ----
Karsten Hopp 5dbf14
  	/*
Karsten Hopp 5dbf14
  	 * Check whether any of the list items is locked
Karsten Hopp 5dbf14
  	 */
Karsten Hopp 5dbf14
! 	for (ri = rettv->vval.v_list->lv_first; ri != NULL && ll_li != NULL; )
Karsten Hopp 5dbf14
  	{
Karsten Hopp 5dbf14
  	    if (tv_check_lock(ll_li->li_tv.v_lock, lp->ll_name))
Karsten Hopp 5dbf14
  		return;
Karsten Hopp 5dbf14
*** ../vim-7.4.540/src/testdir/test55.in	2014-08-29 09:46:04.262404970 +0200
Karsten Hopp 5dbf14
--- src/testdir/test55.in	2014-12-07 00:04:41.892976604 +0100
Karsten Hopp 5dbf14
***************
Karsten Hopp 5dbf14
*** 401,406 ****
Karsten Hopp 5dbf14
--- 401,411 ----
Karsten Hopp 5dbf14
  :  $put =v:exception[:15] . v:exception[-1:-1]
Karsten Hopp 5dbf14
  :endtry
Karsten Hopp 5dbf14
  :$put =string(d)
Karsten Hopp 5dbf14
+ :"
Karsten Hopp 5dbf14
+ :" test for range assign
Karsten Hopp 5dbf14
+ :let l = [0]
Karsten Hopp 5dbf14
+ :let l[:] = [1, 2]
Karsten Hopp 5dbf14
+ :$put =string(l)
Karsten Hopp 5dbf14
  :endfun
Karsten Hopp 5dbf14
  :"
Karsten Hopp 5dbf14
  :call Test(1, 2, [3, 4], {5: 6})  " This may take a while
Karsten Hopp 5dbf14
*** ../vim-7.4.540/src/testdir/test55.ok	2014-08-29 09:46:04.266404970 +0200
Karsten Hopp 5dbf14
--- src/testdir/test55.ok	2014-12-07 00:05:08.208695651 +0100
Karsten Hopp 5dbf14
***************
Karsten Hopp 5dbf14
*** 129,134 ****
Karsten Hopp 5dbf14
--- 129,135 ----
Karsten Hopp 5dbf14
  {'a': {'b': 'B'}}
Karsten Hopp 5dbf14
  Vim(call):E737: a
Karsten Hopp 5dbf14
  {'a': {'b': 'B'}}
Karsten Hopp 5dbf14
+ [1, 2]
Karsten Hopp 5dbf14
  Vim(foldopen):E490:
Karsten Hopp 5dbf14
  
Karsten Hopp 5dbf14
  
Karsten Hopp 5dbf14
*** ../vim-7.4.540/src/version.c	2014-11-30 22:51:00.629191482 +0100
Karsten Hopp 5dbf14
--- src/version.c	2014-12-07 00:04:11.237300854 +0100
Karsten Hopp 5dbf14
***************
Karsten Hopp 5dbf14
*** 743,744 ****
Karsten Hopp 5dbf14
--- 743,746 ----
Karsten Hopp 5dbf14
  {   /* Add new patch number below this line */
Karsten Hopp 5dbf14
+ /**/
Karsten Hopp 5dbf14
+     541,
Karsten Hopp 5dbf14
  /**/
Karsten Hopp 5dbf14
Karsten Hopp 5dbf14
-- 
Karsten Hopp 5dbf14
Any resemblance between the above views and those of my employer, my terminal,
Karsten Hopp 5dbf14
or the view out my window are purely coincidental.  Any resemblance between
Karsten Hopp 5dbf14
the above and my own views is non-deterministic.  The question of the
Karsten Hopp 5dbf14
existence of views in the absence of anyone to hold them is left as an
Karsten Hopp 5dbf14
exercise for the reader.  The question of the existence of the reader is left
Karsten Hopp 5dbf14
as an exercise for the second god coefficient.  (A discussion of
Karsten Hopp 5dbf14
non-orthogonal, non-integral polytheism is beyond the scope of this article.)
Karsten Hopp 5dbf14
						(Ralph Jennings)
Karsten Hopp 5dbf14
Karsten Hopp 5dbf14
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 5dbf14
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 5dbf14
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 5dbf14
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///