home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.4 / 7.4.541 < prev    next >
Encoding:
Internet Message Format  |  2014-12-06  |  2.7 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.541
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.4.541
  11. Problem:    Crash when doing a range assign.
  12. Solution:   Check for NULL poiter. (Yukihiro Nakadaira)
  13. Files:        src/eval.c, src/testdir/test55.in, src/testdir/test55.ok
  14.  
  15.  
  16. *** ../vim-7.4.540/src/eval.c    2014-11-19 20:04:43.656099839 +0100
  17. --- src/eval.c    2014-12-07 00:05:47.404278920 +0100
  18. ***************
  19. *** 2951,2957 ****
  20.       /*
  21.        * Check whether any of the list items is locked
  22.        */
  23. !     for (ri = rettv->vval.v_list->lv_first; ri != NULL; )
  24.       {
  25.           if (tv_check_lock(ll_li->li_tv.v_lock, lp->ll_name))
  26.           return;
  27. --- 2951,2957 ----
  28.       /*
  29.        * Check whether any of the list items is locked
  30.        */
  31. !     for (ri = rettv->vval.v_list->lv_first; ri != NULL && ll_li != NULL; )
  32.       {
  33.           if (tv_check_lock(ll_li->li_tv.v_lock, lp->ll_name))
  34.           return;
  35. *** ../vim-7.4.540/src/testdir/test55.in    2014-08-29 09:46:04.262404970 +0200
  36. --- src/testdir/test55.in    2014-12-07 00:04:41.892976604 +0100
  37. ***************
  38. *** 401,406 ****
  39. --- 401,411 ----
  40.   :  $put =v:exception[:15] . v:exception[-1:-1]
  41.   :endtry
  42.   :$put =string(d)
  43. + :"
  44. + :" test for range assign
  45. + :let l = [0]
  46. + :let l[:] = [1, 2]
  47. + :$put =string(l)
  48.   :endfun
  49.   :"
  50.   :call Test(1, 2, [3, 4], {5: 6})  " This may take a while
  51. *** ../vim-7.4.540/src/testdir/test55.ok    2014-08-29 09:46:04.266404970 +0200
  52. --- src/testdir/test55.ok    2014-12-07 00:05:08.208695651 +0100
  53. ***************
  54. *** 129,134 ****
  55. --- 129,135 ----
  56.   {'a': {'b': 'B'}}
  57.   Vim(call):E737: a
  58.   {'a': {'b': 'B'}}
  59. + [1, 2]
  60.   Vim(foldopen):E490:
  61.   
  62.   
  63. *** ../vim-7.4.540/src/version.c    2014-11-30 22:51:00.629191482 +0100
  64. --- src/version.c    2014-12-07 00:04:11.237300854 +0100
  65. ***************
  66. *** 743,744 ****
  67. --- 743,746 ----
  68.   {   /* Add new patch number below this line */
  69. + /**/
  70. +     541,
  71.   /**/
  72.  
  73. -- 
  74. Any resemblance between the above views and those of my employer, my terminal,
  75. or the view out my window are purely coincidental.  Any resemblance between
  76. the above and my own views is non-deterministic.  The question of the
  77. existence of views in the absence of anyone to hold them is left as an
  78. exercise for the reader.  The question of the existence of the reader is left
  79. as an exercise for the second god coefficient.  (A discussion of
  80. non-orthogonal, non-integral polytheism is beyond the scope of this article.)
  81.                         (Ralph Jennings)
  82.  
  83.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  84. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  85. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  86.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  87.