From 6bcbf3f804d921923623ecd147d98688f73b0550 Mon Sep 17 00:00:00 2001 From: Roland Baer Date: Thu, 2 Aug 2007 10:53:31 +0300 Subject: [PATCH] Wrong indexing, caused buffer overflow --- src/mesa/drivers/dri/sis/sis_tex.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/sis/sis_tex.c b/src/mesa/drivers/dri/sis/sis_tex.c index be87f16..7baff11 100644 --- a/src/mesa/drivers/dri/sis/sis_tex.c +++ b/src/mesa/drivers/dri/sis/sis_tex.c @@ -213,7 +213,7 @@ sisDeleteTexture( GLcontext * ctx, struct gl_texture_object *texObj ) */ return; } - for (i = 0; i < MAX_TEXTURE_LEVELS; i++) { + for (i = 0; i < SIS_MAX_TEXTURE_LEVELS; i++) { sisFreeTexImage( smesa, t, i ); } -- 1.5.2.3