Cody Schafer 8696329b7b perf annotate: Prevent overflow in size calculation
A large enough symbol size causes an overflow in the size parameter to
the histogram allocation, leading to a segfault in
symbol__inc_addr_samples later on when this histogram is accessed.

In the case of being called via perf-report, this returns back and
gracefully ignores the sample, eventually ignoring the chained return
value of perf_session_deliver_event in flush_sample_queue.

Signed-off-by: Cody Schafer <cody@linux.vnet.ibm.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/1342753525-4521-1-git-send-email-cody@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2012-07-25 13:06:42 -03:00
..
2011-02-16 13:30:48 +01:00
2012-02-13 23:17:40 -02:00
2012-06-19 13:06:22 -03:00
2012-06-19 13:06:18 -03:00
2010-08-21 11:22:47 -03:00
2012-06-29 13:31:27 -03:00
2012-06-18 12:13:26 +02:00
2010-05-14 20:05:21 -03:00
2012-01-24 19:47:37 -02:00
2012-06-19 13:06:18 -03:00
2012-06-19 13:06:18 -03:00
2012-06-19 13:06:19 -03:00
2012-07-25 11:33:04 -03:00
2012-07-25 11:33:17 -03:00
2012-05-17 12:32:54 -03:00
2012-05-02 15:20:30 -03:00
2012-06-19 13:06:19 -03:00