swr: validate backend state numAttributes
authorTim Rowley <timothy.o.rowley@intel.com>
Wed, 15 Mar 2017 16:42:43 +0000 (11:42 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Wed, 15 Mar 2017 20:08:59 +0000 (15:08 -0500)
commita7ce0490e42b056dc20e13af795ca3e4cb73ed52
treec2317f88b7434e52b5b07168b1803804138673b2
parent8378c576abd3b84aacfa854c9d110c36f10ac6a2
swr: validate backend state numAttributes

General protection and prevents us from smashing the stack
on the first clear state validation (a7b8d50bcb).  Fixes crash
using icc.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/swr_state.cpp