Re: [PATCH] perf daemon: Fix compile error with Asan

2021-03-03 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 24, 2021 at 12:06:46PM +0100, Jiri Olsa escreveu: > On Wed, Feb 24, 2021 at 04:14:38PM +0900, Namhyung Kim wrote: > > I'm seeing a build failure when build with address sanitizer. > > It seems we could write to the name[100] if the var is longer. > > > > $ make EXTRA_CFLAGS=-fsanitiz

Re: [PATCH] perf daemon: Fix compile error with Asan

2021-02-24 Thread Jiri Olsa
On Wed, Feb 24, 2021 at 04:14:38PM +0900, Namhyung Kim wrote: > I'm seeing a build failure when build with address sanitizer. > It seems we could write to the name[100] if the var is longer. > > $ make EXTRA_CFLAGS=-fsanitize=address > ... > CC builtin-daemon.o > In function ‘get_s

[PATCH] perf daemon: Fix compile error with Asan

2021-02-23 Thread Namhyung Kim
I'm seeing a build failure when build with address sanitizer. It seems we could write to the name[100] if the var is longer. $ make EXTRA_CFLAGS=-fsanitize=address ... CC builtin-daemon.o In function ‘get_session_name’, inlined from ‘session_config’ at builtin-daemon.c:164:6,