From: Adam Jackson Date: Mon, 3 Apr 2006 00:00:53 +0000 (+0000) Subject: Coverity #468: Fill in the rest of the error_list to match the error codes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ab5517ba8d2d0b4d590b5fe864797b8a8241cc5;p=mesa.git Coverity #468: Fill in the rest of the error_list to match the error codes defined in glxproto.h. Avoids reading semi-random memory (and probably crashing) when calling __glXErrorString(). --- diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index eb6e870e984..14d5ffa4f96 100644 --- a/src/glx/x11/glxext.c +++ b/src/glx/x11/glxext.c @@ -289,6 +289,10 @@ static /* const */ char *error_list[] = { "GLXBadRenderRequest", "GLXBadLargeRequest", "GLXUnsupportedPrivateRequest", + "GLXBadFBConfig", + "GLXBadPbuffer", + "GLXBadCurrentDrawable", + "GLXBadWindow", }; int __glXCloseDisplay(Display *dpy, XExtCodes *codes)