Fix a server crash due to memsetting beyond allocated memory when running
GL applications.
This commit is contained in:
parent
f6ca2b3ea9
commit
2a6c11aa3b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user