Re: [Piglit] [PATCH] Fix out of bounds read in the AMD_performance_monitor measure test.

2013-09-24 Thread Ian Romanick
On 09/19/2013 03:41 PM, Kenneth Graunke wrote: If the last counter returned is a 32-bit value, reading a uint64_t might go past the end of the buffer. So, delay reading the 64-bit value until we know the type is 64-bit. Signed-off-by: Kenneth Graunke kenn...@whitecape.org Reviewed-by: Ian

[Piglit] [PATCH] Fix out of bounds read in the AMD_performance_monitor measure test.

2013-09-19 Thread Kenneth Graunke
If the last counter returned is a 32-bit value, reading a uint64_t might go past the end of the buffer. So, delay reading the 64-bit value until we know the type is 64-bit. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- tests/spec/amd_performance_monitor/measure.c | 2 +- 1 file