Re: [PATCH] perf annotate: fix heap overflow

From: Arnaldo Carvalho de Melo
Date: Wed Nov 06 2019 - 14:01:42 EST


Em Mon, Oct 28, 2019 at 08:29:08PM +0100, Jiri Olsa escreveu:
> On Fri, Oct 25, 2019 at 08:56:44PM -0700, Ian Rogers wrote:
> > Fix expand_tabs that copies the source lines '\0' and then appends
> > another '\0' at a potentially out of bounds address.
>
> not sure it could get out of bounds, but i think
> the change is right, it matches the memcpy before
> and I dont see reason to add +1
>
> Acked-by: Jiri Olsa <jolsa@xxxxxxxxxx>


Thanks, applied,

- Arnaldo