perf tools: Check we are able to read the event size on mmap
authorFrederic Weisbecker <[email protected]>
Sat, 21 May 2011 15:07:24 +0000 (17:07 +0200)
committerFrederic Weisbecker <[email protected]>
Sun, 22 May 2011 01:12:13 +0000 (03:12 +0200)
commiteac9eacee1602710dda47c517ad0b61ac6f429bf
treeea59e724cec133e301cd73306e31362a1ddfe8f3
parentc5fc472171ec4f96d06d1ac039d88f9b89bb95db
perf tools: Check we are able to read the event size on mmap

Check we have enough mmaped space to read the current event
size from its headers, otherwise we may dereference some
hell there.

Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Stephane Eranian <[email protected]>
tools/perf/util/session.c