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