mesa: test index bounds before array element
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 6 Jan 2010 16:27:42 +0000 (08:27 -0800)
committerBrian Paul <brianp@vmware.com>
Wed, 6 Jan 2010 16:47:37 +0000 (09:47 -0700)
commit324568f79d6e014900c981bd9a0e1dffedc326c8
tree04c0dc711d64d575fb9adc02107803bec5c2257f
parent5db710a8231fe50d2faad8e9adb2a07616cc6130
mesa: test index bounds before array element

Check whether the index is within bounds before accessing the array.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/dri/tdfx/tdfx_dd.c
src/mesa/shader/nvfragparse.c
src/mesa/shader/prog_optimize.c