diff options
author | Vinson Lee <[email protected]> | 2010-02-27 20:23:17 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-02-27 20:23:17 -0800 |
commit | 706fffbff59be0dc884e1938f1bdf731af1efa3e (patch) | |
tree | 459caf446236d96aec0d57b5f308b3f2e88e60c8 /src/glx/glx_pbuffer.c | |
parent | 75dba756b2e3d6850b56376d7c183dc3277a563b (diff) |
glx: Add assert to check input to memcpy.
Diffstat (limited to 'src/glx/glx_pbuffer.c')
-rw-r--r-- | src/glx/glx_pbuffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |