diff options
-rw-r--r-- | overlay/gpu-perf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/overlay/gpu-perf.c b/overlay/gpu-perf.c index 5629f826..7addd78d 100644 --- a/overlay/gpu-perf.c +++ b/overlay/gpu-perf.c @@ -494,6 +494,7 @@ int gpu_perf_update(struct gpu_perf *gp) const struct perf_event_header *header; header = (const struct perf_event_header *)(data + (tail & mask)); + assert(header->size > 0); if (header->size > head - tail) break; |