From 5ab5517ba8d2d0b4d590b5fe864797b8a8241cc5 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 3 Apr 2006 00:00:53 +0000 Subject: 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(). --- src/glx/x11/glxext.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index eb6e870e98..14d5ffa4f9 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) -- cgit v1.2.3