Re: [PATCH] perf: probe: avoid segfault if passed with ''.

2015-05-04 Thread Arnaldo Carvalho de Melo
Em Tue, Apr 28, 2015 at 08:46:09AM +, Wang Nan escreveu: > Since parse_perf_probe_point() deals with a user passed argument, we > should not assume it to be a valid string. > > Without this patch, if pass '' to perf probe, a segfault raises: > > $ perf probe -a '' > Segmentation fault > >

[PATCH] perf: probe: avoid segfault if passed with ''.

2015-04-28 Thread Wang Nan
Since parse_perf_probe_point() deals with a user passed argument, we should not assume it to be a valid string. Without this patch, if pass '' to perf probe, a segfault raises: $ perf probe -a '' Segmentation fault This patch checks argument of parse_perf_probe_point() before string processing