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