Re: PATCH: buffer overflow when using :vimgrep
- Gabriel -
> Here is a patch for src/fileio.c, fixing a buffer overflow whenThanks for fixing this!
> invoking vimgrep (if FEAT_AUTOCMD and FEAT_SYN_HL are defined).
> The ex_vimgrep function calls au_event_disable(",Filetype"), i.e.
> passing a string with 9 chars, but inside au_event_disable it was
> assuming that the parameter string was at most 8 chars long. Instead
> I just check for the actual length of the string. The diff was made
> against the vim7.0157 snapshot.
An actual excerpt from a classified section of a city newspaper:
"Illiterate? Write today for free help!"
/// Bram Moolenaar -- Bram@... -- 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://www.ICCF.nl ///