From: Vinson Lee Date: Sun, 28 Feb 2010 04:23:17 +0000 (-0800) Subject: glx: Add assert to check input to memcpy. X-Git-Tag: mesa-7.8~315 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=706fffbff59be0dc884e1938f1bdf731af1efa3e;p=platform%2Fupstream%2Fmesa.git glx: Add assert to check input to memcpy. --- diff --git a/src/glx/glx_pbuffer.c b/src/glx/glx_pbuffer.c index 4c122ba..f635138 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);