Coverity #468: Fill in the rest of the error_list to match the error codes
authorAdam Jackson <ajax@freedesktop.org>
Mon, 3 Apr 2006 00:00:53 +0000 (00:00 +0000)
committerAdam Jackson <ajax@freedesktop.org>
Mon, 3 Apr 2006 00:00:53 +0000 (00:00 +0000)
defined in glxproto.h.  Avoids reading semi-random memory (and probably
crashing) when calling __glXErrorString().

src/glx/x11/glxext.c

index eb6e870e9840a3a1b522b78585dc628d48dce0ef..14d5ffa4f9614d0b4770e698948894cf6dba0eaa 100644 (file)
@@ -289,6 +289,10 @@ static /* const */ char *error_list[] = {
     "GLXBadRenderRequest",
     "GLXBadLargeRequest",
     "GLXUnsupportedPrivateRequest",
+    "GLXBadFBConfig",
+    "GLXBadPbuffer",
+    "GLXBadCurrentDrawable",
+    "GLXBadWindow",
 };
 
 int __glXCloseDisplay(Display *dpy, XExtCodes *codes)