linux/tools/perf/ui
Arnaldo Carvalho de Melo 48d038fcd0 perf ui browser: Fix segfault caused by off by one handling END key
$ perf record ls
$ perf report

Press 'down enter end'

Result:

Program received signal SIGSEGV, Segmentation fault.

The UI browser, used on a argv array would access past the end of the
array on SEEK_END because it wasn't using 'nr_entries - 1', fix it.

Reported-by: v.karpov@samsung.com
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=59291
Link: http://lkml.kernel.org/n/tip-3g83ipasqi219ktv764xzzjs@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-11-14 16:00:31 -03:00
..
browsers perf evsel: Introduce perf_evsel__prev() method 2013-11-14 16:00:16 -03:00
gtk perf ui progress: Per progress bar state 2013-10-23 15:40:38 -03:00
stdio perf tools: Finish the removal of 'self' arguments 2013-11-05 15:32:36 -03:00
tui perf ui tui progress: Don't force a refresh during progress update 2013-11-11 15:56:39 -03:00
browser.c perf ui browser: Fix segfault caused by off by one handling END key 2013-11-14 16:00:31 -03:00
browser.h perf tools: Finish the removal of 'self' arguments 2013-11-05 15:32:36 -03:00
helpline.c
helpline.h
hist.c perf tools: Remove cast of non-variadic function to variadic 2013-11-01 10:40:51 -03:00
keysyms.h
libslang.h
progress.c perf ui progress: Per progress bar state 2013-10-23 15:40:38 -03:00
progress.h perf ui progress: Per progress bar state 2013-10-23 15:40:38 -03:00
setup.c perf tools: Separate out GTK codes to libperf-gtk.so 2013-10-09 15:55:25 -03:00
ui.h perf tools: Separate out GTK codes to libperf-gtk.so 2013-10-09 15:55:25 -03:00
util.c
util.h