mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-20 15:20:43 +02:00
Fix a server crash due to memsetting beyond allocated memory when running
GL applications.
This commit is contained in:
parent
f6ca2b3ea9
commit
2a6c11aa3b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue