Re: [PATCH v2 2/3] perf hists browser: Add NULL pointer check to prevent crash

2015-12-04 Thread Namhyung Kim
On Thu, Dec 03, 2015 at 03:08:14AM +, Wang Nan wrote: > Before this patch we can trigger a segfault by following steps: > > Step 0: Use 'perf record' to generate a perf.data without callchain > > Step 1: perf report > > Step 2: Use UP/DOWN to select an entry, don't press 'ENTER' > > Ste

[PATCH v2 2/3] perf hists browser: Add NULL pointer check to prevent crash

2015-12-02 Thread Wang Nan
Before this patch we can trigger a segfault by following steps: Step 0: Use 'perf record' to generate a perf.data without callchain Step 1: perf report Step 2: Use UP/DOWN to select an entry, don't press 'ENTER' Step 3: Use '/' to filter symbols, use a filter which returns empty re