Yegappan Lakshmanan wrote:

> On Sat, Apr 30, 2016 at 4:17 AM, Bram Moolenaar <[email protected]> wrote:
> >
> > Anton Lindqvist wrote:
> >
> >> I managed to crash Vim yesterday due to a off-by-one allocation bug
> >> related to the quickfix changes. Fixed in the attached patch.
> >
> > Well, if I run test_quickfix after including this patch, Vim crashes.
> > I found that a statement was missing, setting linelen to len.
> > I did some minor cleanups.
> >
> > I'll include it now.  However, the code to increase the size of the
> > buffer is repeated three times, would be nice to put it in one place.
> 
> The attached patch refactors the code so that the memory allocation
> code is not repeated three times.

Thanks!

-- 
The Characters and incidents portrayed and the names used are fictitious and
any similarity to the names, characters, or history of any person is entirely
accidental and unintentional.
                                  Signed RICHARD M. NIXON
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui