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.3 / 7.3.1292 < prev    next >
Encoding:
Internet Message Format  |  2013-07-02  |  1.6 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.1292
  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.3.1292
  11. Problem:    Possibly using invalid pointer when searcing for window. (Raichoo)
  12. Solution:   Use "firstwin" instead of "tp_firstwin" for current tab.
  13. Files:        src/window.c
  14.  
  15.  
  16. *** ../vim-7.3.1291/src/window.c    2013-06-28 20:16:50.000000000 +0200
  17. --- src/window.c    2013-07-03 13:53:59.000000000 +0200
  18. ***************
  19. *** 4077,4083 ****
  20.       tabpage_T    *tp;
  21.   
  22.       for (tp = first_tabpage; tp != NULL; tp = tp->tp_next)
  23. !     for (wp = tp->tp_firstwin; wp != NULL; wp = wp->w_next)
  24.           if (wp == win)
  25.           return tp;
  26.       return NULL;
  27. --- 4077,4084 ----
  28.       tabpage_T    *tp;
  29.   
  30.       for (tp = first_tabpage; tp != NULL; tp = tp->tp_next)
  31. !     for (wp = (tp == curtab ? firstwin : tp->tp_firstwin);
  32. !                           wp != NULL; wp = wp->w_next)
  33.           if (wp == win)
  34.           return tp;
  35.       return NULL;
  36. *** ../vim-7.3.1291/src/version.c    2013-07-03 13:29:55.000000000 +0200
  37. --- src/version.c    2013-07-03 13:57:01.000000000 +0200
  38. ***************
  39. *** 730,731 ****
  40. --- 730,733 ----
  41.   {   /* Add new patch number below this line */
  42. + /**/
  43. +     1292,
  44.   /**/
  45.  
  46. -- 
  47. There can't be a crisis today, my schedule is already full.
  48.  
  49.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  50. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  51. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  52.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  53.