Re: [PATCH] perf parse-events: Avoid free on non malloc-ed memory

2020-05-13 Thread Arnaldo Carvalho de Melo
Em Tue, May 12, 2020 at 04:52:02PM -0700, Ian Rogers escreveu: > Caught by libfuzzer, there is a segfault with: > $ perf stat -e i/bs,tsc,L2/o sleep 1 > As a config_term is added that isn't a string. Yeah, I've just applied a similar patch after looking at your private report, added the same

[PATCH] perf parse-events: Avoid free on non malloc-ed memory

2020-05-12 Thread Ian Rogers
Caught by libfuzzer, there is a segfault with: $ perf stat -e i/bs,tsc,L2/o sleep 1 As a config_term is added that isn't a string. Fixes: e8dfb81838b1 (perf parse-events: Fix memory leaks found on parse_events) Signed-off-by: Ian Rogers --- tools/perf/util/parse-events.c | 3 ++- 1 file