Re: [PATCH] perf tools: avoid reading out of scope array

2019-10-23 Thread Jiri Olsa
On Thu, Oct 17, 2019 at 10:05:31AM -0700, Ian Rogers wrote: > Modify tracepoint name into 2 sys components and assemble at use. This > avoids the sys_name array being out of scope at the point of use. > Bug caught with LLVM's address sanitizer with fuzz generated input of > ":cs\1" to parse_events.

[PATCH] perf tools: avoid reading out of scope array

2019-10-17 Thread Ian Rogers
Modify tracepoint name into 2 sys components and assemble at use. This avoids the sys_name array being out of scope at the point of use. Bug caught with LLVM's address sanitizer with fuzz generated input of ":cs\1" to parse_events. Signed-off-by: Ian Rogers --- tools/perf/util/parse-events.y | 3