From 2eef9c0b16eb33c32359209cf71317fc42c49404 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 6 Dec 2014 23:04:53 -0800 Subject: [PATCH] r200: Avoid out of bounds array access. Reviewed-by: Ian Romanick --- src/mesa/drivers/dri/r200/r200_sanity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/r200/r200_sanity.c b/src/mesa/drivers/dri/r200/r200_sanity.c index dd3cf817558..34d83d89b38 100644 --- a/src/mesa/drivers/dri/r200/r200_sanity.c +++ b/src/mesa/drivers/dri/r200/r200_sanity.c @@ -622,7 +622,7 @@ static void init_regs( void ) struct reg_names *tmp; int i; - for (i = 0 ; i < Elements(regs) ; i++) { + for (i = 0 ; i < Elements(reg_names) ; i++) { regs[i].idx = reg_names[i].idx; regs[i].closest = ®_names[i]; regs[i].flags = 0; -- 2.30.2