Karsten Hopp ce26e1
To: vim_dev@googlegroups.com
Karsten Hopp ce26e1
Subject: Patch 7.3.730
Karsten Hopp ce26e1
Fcc: outbox
Karsten Hopp ce26e1
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp ce26e1
Mime-Version: 1.0
Karsten Hopp ce26e1
Content-Type: text/plain; charset=UTF-8
Karsten Hopp ce26e1
Content-Transfer-Encoding: 8bit
Karsten Hopp ce26e1
------------
Karsten Hopp ce26e1
Karsten Hopp ce26e1
Patch 7.3.730
Karsten Hopp ce26e1
Problem:    Crash in PHP file when using syntastic. (Ike Devolder)
Karsten Hopp ce26e1
Solution:   Avoid using NULL pointer. (Christian Brabandt)
Karsten Hopp ce26e1
Files:	    src/quickfix.c
Karsten Hopp ce26e1
Karsten Hopp ce26e1
Karsten Hopp ce26e1
*** ../vim-7.3.729/src/quickfix.c	2012-11-20 17:55:06.000000000 +0100
Karsten Hopp ce26e1
--- src/quickfix.c	2012-11-28 15:20:21.000000000 +0100
Karsten Hopp ce26e1
***************
Karsten Hopp ce26e1
*** 898,908 ****
Karsten Hopp ce26e1
       * way with ":grep'.
Karsten Hopp ce26e1
       */
Karsten Hopp ce26e1
      while (qi->qf_listcount > qi->qf_curlist + 1)
Karsten Hopp ce26e1
-     {
Karsten Hopp ce26e1
- 	if (wp != NULL && wp->w_llist == qi)
Karsten Hopp ce26e1
- 	    wp->w_llist = NULL;
Karsten Hopp ce26e1
  	qf_free(qi, --qi->qf_listcount);
Karsten Hopp ce26e1
-     }
Karsten Hopp ce26e1
  
Karsten Hopp ce26e1
      /*
Karsten Hopp ce26e1
       * When the stack is full, remove to oldest entry
Karsten Hopp ce26e1
--- 898,904 ----
Karsten Hopp ce26e1
***************
Karsten Hopp ce26e1
*** 910,917 ****
Karsten Hopp ce26e1
       */
Karsten Hopp ce26e1
      if (qi->qf_listcount == LISTCOUNT)
Karsten Hopp ce26e1
      {
Karsten Hopp ce26e1
- 	if (wp != NULL && wp->w_llist == qi)
Karsten Hopp ce26e1
- 	    wp->w_llist = NULL;
Karsten Hopp ce26e1
  	qf_free(qi, 0);
Karsten Hopp ce26e1
  	for (i = 1; i < LISTCOUNT; ++i)
Karsten Hopp ce26e1
  	    qi->qf_lists[i - 1] = qi->qf_lists[i];
Karsten Hopp ce26e1
--- 906,911 ----
Karsten Hopp ce26e1
***************
Karsten Hopp ce26e1
*** 2135,2143 ****
Karsten Hopp ce26e1
      while (qi->qf_lists[idx].qf_count)
Karsten Hopp ce26e1
      {
Karsten Hopp ce26e1
  	qfp = qi->qf_lists[idx].qf_start->qf_next;
Karsten Hopp ce26e1
! 	vim_free(qi->qf_lists[idx].qf_start->qf_text);
Karsten Hopp ce26e1
! 	vim_free(qi->qf_lists[idx].qf_start->qf_pattern);
Karsten Hopp ce26e1
! 	vim_free(qi->qf_lists[idx].qf_start);
Karsten Hopp ce26e1
  	qi->qf_lists[idx].qf_start = qfp;
Karsten Hopp ce26e1
  	--qi->qf_lists[idx].qf_count;
Karsten Hopp ce26e1
      }
Karsten Hopp ce26e1
--- 2129,2140 ----
Karsten Hopp ce26e1
      while (qi->qf_lists[idx].qf_count)
Karsten Hopp ce26e1
      {
Karsten Hopp ce26e1
  	qfp = qi->qf_lists[idx].qf_start->qf_next;
Karsten Hopp ce26e1
! 	if (qi->qf_lists[idx].qf_title != NULL)
Karsten Hopp ce26e1
! 	{
Karsten Hopp ce26e1
! 	    vim_free(qi->qf_lists[idx].qf_start->qf_text);
Karsten Hopp ce26e1
! 	    vim_free(qi->qf_lists[idx].qf_start->qf_pattern);
Karsten Hopp ce26e1
! 	    vim_free(qi->qf_lists[idx].qf_start);
Karsten Hopp ce26e1
! 	}
Karsten Hopp ce26e1
  	qi->qf_lists[idx].qf_start = qfp;
Karsten Hopp ce26e1
  	--qi->qf_lists[idx].qf_count;
Karsten Hopp ce26e1
      }
Karsten Hopp ce26e1
*** ../vim-7.3.729/src/version.c	2012-11-24 13:38:56.000000000 +0100
Karsten Hopp ce26e1
--- src/version.c	2012-11-28 15:16:16.000000000 +0100
Karsten Hopp ce26e1
***************
Karsten Hopp ce26e1
*** 727,728 ****
Karsten Hopp ce26e1
--- 727,730 ----
Karsten Hopp ce26e1
  {   /* Add new patch number below this line */
Karsten Hopp ce26e1
+ /**/
Karsten Hopp ce26e1
+     730,
Karsten Hopp ce26e1
  /**/
Karsten Hopp ce26e1
Karsten Hopp ce26e1
Karsten Hopp ce26e1
-- 
Karsten Hopp ce26e1
hundred-and-one symptoms of being an internet addict:
Karsten Hopp ce26e1
89. In addition to your e-mail address being on your business
Karsten Hopp ce26e1
    cards you even have your own domain.
Karsten Hopp ce26e1
Karsten Hopp ce26e1
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp ce26e1
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp ce26e1
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp ce26e1
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///