[PATCH xserver] glx: Erase glx client private before using

Keith Packard keithp at keithp.com
Wed Aug 2 10:39:58 UTC 2017


There's no guarantee that this structure is cleared when the client is
created, so clear it out ourselves.

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 glx/glxext.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/glx/glxext.c b/glx/glxext.c
index e88bbd107..bbd2dc664 100644
--- a/glx/glxext.c
+++ b/glx/glxext.c
@@ -275,6 +275,7 @@ glxClientCallback(CallbackListPtr *list, void *closure, void *data)
 
     switch (pClient->clientState) {
     case ClientStateRunning:
+        memset(cl, '\0', sizeof (*cl));
         cl->client = pClient;
         break;
 
-- 
2.11.0



More information about the xorg-devel mailing list