[PATCH V13 02/12] perf tools: tidy up sample parsing overflow checking

2013-08-27 Thread Adrian Hunter
The size of data retrieved from a sample event must be validated to ensure it does not go past the end of the event. That was being done sporadically and without considering integer overflows. Signed-off-by: Adrian Hunter Acked-by: Jiri Olsa --- tools/perf/util/evsel.c | 112

[PATCH V13 02/12] perf tools: tidy up sample parsing overflow checking

2013-08-27 Thread Adrian Hunter
The size of data retrieved from a sample event must be validated to ensure it does not go past the end of the event. That was being done sporadically and without considering integer overflows. Signed-off-by: Adrian Hunter adrian.hun...@intel.com Acked-by: Jiri Olsa jo...@redhat.com ---