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