From 2a6c11aa3b06f13dad94f3441c7184e6720a2bf4 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Mon, 3 Apr 2006 09:12:28 +0000 Subject: [PATCH] Fix a server crash due to memsetting beyond allocated memory when running GL applications. --- hw/dmx/glxProxy/glxcmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/dmx/glxProxy/glxcmds.c b/hw/dmx/glxProxy/glxcmds.c index fe1d3571f..d7ea70728 100644 --- a/hw/dmx/glxProxy/glxcmds.c +++ b/hw/dmx/glxProxy/glxcmds.c @@ -611,7 +611,7 @@ static int AddCurrentContext(__GLXclientState *cl, __GLXcontext *glxc, DrawableP cl->numCurrentContexts++; __glXMemset(cl->be_currentCTag + num*screenInfo.numScreens, 0, - screenInfo.numScreens * sizeof(Display *)); + screenInfo.numScreens * sizeof(GLXContextTag)); return num+1; }