mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
glx: Add assert to check input to memcpy.
This commit is contained in:
parent
75dba756b2
commit
706fffbff5
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue