Karsten Hopp c708a5
To: vim_dev@googlegroups.com
Karsten Hopp c708a5
Subject: Patch 7.3.1292
Karsten Hopp c708a5
Fcc: outbox
Karsten Hopp c708a5
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp c708a5
Mime-Version: 1.0
Karsten Hopp c708a5
Content-Type: text/plain; charset=UTF-8
Karsten Hopp c708a5
Content-Transfer-Encoding: 8bit
Karsten Hopp c708a5
------------
Karsten Hopp c708a5
Karsten Hopp c708a5
Patch 7.3.1292
Karsten Hopp c708a5
Problem:    Possibly using invalid pointer when searcing for window. (Raichoo)
Karsten Hopp c708a5
Solution:   Use "firstwin" instead of "tp_firstwin" for current tab.
Karsten Hopp c708a5
Files:	    src/window.c
Karsten Hopp c708a5
Karsten Hopp c708a5
Karsten Hopp c708a5
*** ../vim-7.3.1291/src/window.c	2013-06-28 20:16:50.000000000 +0200
Karsten Hopp c708a5
--- src/window.c	2013-07-03 13:53:59.000000000 +0200
Karsten Hopp c708a5
***************
Karsten Hopp c708a5
*** 4077,4083 ****
Karsten Hopp c708a5
      tabpage_T	*tp;
Karsten Hopp c708a5
  
Karsten Hopp c708a5
      for (tp = first_tabpage; tp != NULL; tp = tp->tp_next)
Karsten Hopp c708a5
! 	for (wp = tp->tp_firstwin; wp != NULL; wp = wp->w_next)
Karsten Hopp c708a5
  	    if (wp == win)
Karsten Hopp c708a5
  		return tp;
Karsten Hopp c708a5
      return NULL;
Karsten Hopp c708a5
--- 4077,4084 ----
Karsten Hopp c708a5
      tabpage_T	*tp;
Karsten Hopp c708a5
  
Karsten Hopp c708a5
      for (tp = first_tabpage; tp != NULL; tp = tp->tp_next)
Karsten Hopp c708a5
! 	for (wp = (tp == curtab ? firstwin : tp->tp_firstwin);
Karsten Hopp c708a5
! 						  wp != NULL; wp = wp->w_next)
Karsten Hopp c708a5
  	    if (wp == win)
Karsten Hopp c708a5
  		return tp;
Karsten Hopp c708a5
      return NULL;
Karsten Hopp c708a5
*** ../vim-7.3.1291/src/version.c	2013-07-03 13:29:55.000000000 +0200
Karsten Hopp c708a5
--- src/version.c	2013-07-03 13:57:01.000000000 +0200
Karsten Hopp c708a5
***************
Karsten Hopp c708a5
*** 730,731 ****
Karsten Hopp c708a5
--- 730,733 ----
Karsten Hopp c708a5
  {   /* Add new patch number below this line */
Karsten Hopp c708a5
+ /**/
Karsten Hopp c708a5
+     1292,
Karsten Hopp c708a5
  /**/
Karsten Hopp c708a5
Karsten Hopp c708a5
-- 
Karsten Hopp c708a5
There can't be a crisis today, my schedule is already full.
Karsten Hopp c708a5
Karsten Hopp c708a5
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp c708a5
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp c708a5
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp c708a5
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///