Re: [Mesa-dev] [PATCH 1/3] draw: account for elem size when computing overflow

2013-06-26 Thread Jose Fonseca
- Original Message - We weren't taking into account the size of element that is to be fetched, which meant that it was possible to overflow the buffer reads if the stride was very close to the end of the buffer, e.g. stride = 3, buffer size = 4, and the element to be read = 4. This

[Mesa-dev] [PATCH 1/3] draw: account for elem size when computing overflow

2013-06-25 Thread Zack Rusin
We weren't taking into account the size of element that is to be fetched, which meant that it was possible to overflow the buffer reads if the stride was very close to the end of the buffer, e.g. stride = 3, buffer size = 4, and the element to be read = 4. This should be properly detected as an