OSDN Git Service

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 eb6e870..14d5ffa 100644 (file)
@@ -289,6 +289,10 @@ static /* const */ char *error_list[] = {
     "GLXBadRenderRequest",
     "GLXBadLargeRequest",
     "GLXUnsupportedPrivateRequest",
+    "GLXBadFBConfig",
+    "GLXBadPbuffer",
+    "GLXBadCurrentDrawable",
+    "GLXBadWindow",
 };
 
 int __glXCloseDisplay(Display *dpy, XExtCodes *codes)