From 706fffbff59be0dc884e1938f1bdf731af1efa3e Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sat, 27 Feb 2010 20:23:17 -0800 Subject: [PATCH] glx: Add assert to check input to memcpy. --- src/glx/glx_pbuffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glx/glx_pbuffer.c b/src/glx/glx_pbuffer.c index 4c122ba6ddc..f635138d628 100644 --- a/src/glx/glx_pbuffer.c +++ b/src/glx/glx_pbuffer.c @@ -379,6 +379,7 @@ CreateDrawable(Display * dpy, const __GLcontextModes * fbconfig, req->glxwindow = (GLXWindow) XAllocID(dpy); req->numAttribs = (CARD32) i; + assert(attrib_list); memcpy(data, attrib_list, 8 * i); UnlockDisplay(dpy); -- 2.30.2