Re: [Mesa-dev] [PATCH] r600g: Fix out of bounds access

2017-03-20 Thread Marek Olšák
Pushed, thanks. Marek On Wed, Feb 8, 2017 at 5:16 PM, Bartosz Tomczyk wrote: > fc_sp variable should indicate number of elements in > fc_stack array, but fc_sp was increased at beginning of fc_pushlevel > function. It leads to situation where idx=0 was never used, and last > 32 element was store

Re: [Mesa-dev] [PATCH] r600g: Fix out of bounds access

2017-03-20 Thread Dieter Nützel
Hello Bartosz, can you please rebase? I think this could land. Thanks, Dieter Am 08.02.2017 17:16, schrieb Bartosz Tomczyk: fc_sp variable should indicate number of elements in fc_stack array, but fc_sp was increased at beginning of fc_pushlevel function. It leads to situation where idx=0 was

[Mesa-dev] [PATCH] r600g: Fix out of bounds access

2017-02-08 Thread Bartosz Tomczyk
fc_sp variable should indicate number of elements in fc_stack array, but fc_sp was increased at beginning of fc_pushlevel function. It leads to situation where idx=0 was never used, and last 32 element was stored outside fs_stack array. --- src/gallium/drivers/r600/r600_asm.h| 3 ++- src/gall