From 2eef9c0b16eb33c32359209cf71317fc42c49404 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 6 Dec 2014 23:04:53 -0800 Subject: 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(-) (limited to 'src/mesa/drivers') 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; -- cgit v1.2.3