| From | Adrian Hunter <> | Subject | [PATCH V3 08/11] perf evsel: Add missing overflow check | Date | Fri, 1 Nov 2013 15:51:36 +0200 |
| |
Add missing overflow check in perf_evsel__parse_sample()
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> --- tools/perf/util/evsel.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index f0e263c..dc2b2dc 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -1482,6 +1482,7 @@ int perf_evsel__parse_sample(struct perf_evsel *evsel, union perf_event *event, data->transaction = 0; if (type & PERF_SAMPLE_TRANSACTION) { + OVERFLOW_CHECK_u64(array); data->transaction = *array; array++; } -- 1.7.11.7
|