Re: [PATCH V6 05/12] perf tools: tidy up sample parsing overflow checking

2013-07-17 Thread Adrian Hunter
On 16/07/13 14:53, Jiri Olsa wrote: > On Tue, Jul 16, 2013 at 09:38:11AM +0300, Adrian Hunter wrote: >> 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

Re: [PATCH V6 05/12] perf tools: tidy up sample parsing overflow checking

2013-07-17 Thread Adrian Hunter
On 16/07/13 14:53, Jiri Olsa wrote: On Tue, Jul 16, 2013 at 09:38:11AM +0300, Adrian Hunter wrote: 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.

Re: [PATCH V6 05/12] perf tools: tidy up sample parsing overflow checking

2013-07-16 Thread Jiri Olsa
On Tue, Jul 16, 2013 at 09:38:11AM +0300, Adrian Hunter wrote: > 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

[PATCH V6 05/12] perf tools: tidy up sample parsing overflow checking

2013-07-16 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 --- tools/perf/util/evsel.c | 102

[PATCH V6 05/12] perf tools: tidy up sample parsing overflow checking

2013-07-16 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 --- tools/perf/util/evsel.c | 102

Re: [PATCH V6 05/12] perf tools: tidy up sample parsing overflow checking

2013-07-16 Thread Jiri Olsa
On Tue, Jul 16, 2013 at 09:38:11AM +0300, Adrian Hunter wrote: 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