> Dominique Pellé wrote:
> 
> > Dominique Pellé wrote:
> >
> >> Latest Vim-7.3b BETA (2401:f380d5227fad) accesses uninitialized memory
> >> when doing this:
> >
> > Sorry, i forgot to attach the patch in my previous email.
> > Here it is.
> 
> 
> Having a second look at the code of ml_recover(), I see another bug
> which already existed before my patch: there is a path were ml_recover()
> can do "goto theend" after allocating buf and before initializing buf->b_p_key
> and buf->b_p_cm.  Free memory would then be used when freeing
> buf->p_p_key and buf->b_p_cm.
> 
> Attached new patch also fixes this issue.

Thanks.

-- 
A special cleaning ordinance bans housewives from hiding dirt and dust under a
rug in a dwelling.
                [real standing law in Pennsylvania, United States of America]

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.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

Raspunde prin e-mail lui