Mesa (master): glx: Add assert to check input to memcpy.

Vinson Lee vlee at kemper.freedesktop.org
Sun Feb 28 04:23:49 UTC 2010


Module: Mesa
Branch: master
Commit: 706fffbff59be0dc884e1938f1bdf731af1efa3e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=706fffbff59be0dc884e1938f1bdf731af1efa3e

Author: Vinson Lee <vlee at vmware.com>
Date:   Sat Feb 27 20:23:17 2010 -0800

glx: Add assert to check input to memcpy.

---

 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 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);




More information about the mesa-commit mailing list