Blame SOURCES/7.4.379

22c937
To: vim_dev@googlegroups.com
22c937
Subject: Patch 7.4.379
22c937
Fcc: outbox
22c937
From: Bram Moolenaar <Bram@moolenaar.net>
22c937
Mime-Version: 1.0
22c937
Content-Type: text/plain; charset=UTF-8
22c937
Content-Transfer-Encoding: 8bit
22c937
------------
22c937
22c937
Patch 7.4.379
22c937
Problem:    Accessing freed memory after using setqflist(list, 'r'). (Lcd)
22c937
Solution:   Reset qf_index.
22c937
Files:	    src/quickfix.c
22c937
22c937
22c937
*** ../vim-7.4.378/src/quickfix.c	2014-07-23 15:54:43.443903036 +0200
22c937
--- src/quickfix.c	2014-07-23 16:11:59.915895586 +0200
22c937
***************
22c937
*** 2173,2178 ****
22c937
--- 2173,2179 ----
22c937
      }
22c937
      vim_free(qi->qf_lists[idx].qf_title);
22c937
      qi->qf_lists[idx].qf_title = NULL;
22c937
+     qi->qf_lists[idx].qf_index = 0;
22c937
  }
22c937
  
22c937
  /*
22c937
*** ../vim-7.4.378/src/version.c	2014-07-23 15:54:43.443903036 +0200
22c937
--- src/version.c	2014-07-23 16:14:43.995894407 +0200
22c937
***************
22c937
*** 736,737 ****
22c937
--- 736,739 ----
22c937
  {   /* Add new patch number below this line */
22c937
+ /**/
22c937
+     379,
22c937
  /**/
22c937
22c937
-- 
22c937
"Lisp has all the visual appeal of oatmeal with nail clippings thrown in."
22c937
                                                         -- Larry Wall
22c937
22c937
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
22c937
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
22c937
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
22c937
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///