mesa/src/glx
Stefan Dirsch 27ef7bfd6c Avoid overflow in 'last' variable of FindGLXFunction(...)
This 'last' variable used in FindGLXFunction(...) may become negative,
but has been defined as unsigned int resulting in an overflow,
finally resulting in a segfault when accessing _glXDispatchTableStrings[...].
Fixed this by definining it as signed int. 'first' variable also needs to be
defined as signed int. Otherwise condition for while loop fails due to C
implicitly converting signed to unsigned values before comparison.

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Stefan Dirsch <sndirsch@suse.de>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2016-07-20 16:05:17 +01:00
..
apple
tests glx: Don't enclose includes inside extern "C" { }. 2016-04-26 21:28:34 +01:00
.gitignore
applegl_glx.c
clientattrib.c
clientinfo.c
compsize.c
create_context.c
dri2.c
dri2.h
dri2_glx.c dri2: Check for dummyContext to see if the glx_context is valid 2016-04-27 13:03:11 +01:00
dri2_priv.h mesa_glinterop: remove mesa_glinterop typedefs 2016-05-30 17:53:44 +01:00
dri3_glx.c dri3: Check for dummyContext to see if the glx_context is valid 2016-04-27 13:03:34 +01:00
dri3_priv.h mesa_glinterop: remove mesa_glinterop typedefs 2016-05-30 17:53:44 +01:00
dri_common.c
dri_common.h
dri_common_interop.c mesa_glinterop: remove mesa_glinterop typedefs 2016-05-30 17:53:44 +01:00
dri_common_query_renderer.c
dri_glx.c glx: Implement the libglvnd interface. 2016-05-30 16:29:49 +01:00
dri_sarea.h
drisw_glx.c
drisw_priv.h
eval.c
g_glxglvnddispatchfuncs.c glx/glvnd: remove the final if defined($extension) guards 2016-05-30 17:53:44 +01:00
g_glxglvnddispatchindices.h glx: Implement the libglvnd interface. 2016-05-30 16:29:49 +01:00
glx_error.c
glx_error.h glx: Don't enclose includes inside extern "C" { }. 2016-04-26 21:28:34 +01:00
glx_pbuffer.c glx: Implement the libglvnd interface. 2016-05-30 16:29:49 +01:00
glx_query.c
glxclient.h mesa_glinterop: remove mesa_glinterop typedefs 2016-05-30 17:53:44 +01:00
glxcmds.c glx: fix crash with bad fbconfig 2016-06-09 17:55:44 +03:00
glxconfig.c
glxconfig.h
glxcurrent.c glx: Call __glXInitVertexArrayState() with a usable gc. 2016-07-08 14:02:56 -07:00
glxext.c
glxextensions.c
glxextensions.h glx: Don't enclose includes inside extern "C" { }. 2016-04-26 21:28:34 +01:00
glxglvnd.c Avoid overflow in 'last' variable of FindGLXFunction(...) 2016-07-20 16:05:17 +01:00
glxglvnd.h glx: Implement the libglvnd interface. 2016-05-30 16:29:49 +01:00
glxglvnddispatchfuncs.h glx: Implement the libglvnd interface. 2016-05-30 16:29:49 +01:00
glxhash.c
glxhash.h
indirect_glx.c glx: Call __glXInitVertexArrayState() with a usable gc. 2016-07-08 14:02:56 -07:00
indirect_init.h
indirect_texture_compression.c
indirect_transpose_matrix.c
indirect_vertex_array.c glx: Fix for commit 2c86668694. 2016-07-08 16:46:17 -07:00
indirect_vertex_array.h
indirect_vertex_array_priv.h glx: Fix indirect multi-texture GL_DOUBLE coordinate arrays. 2016-07-08 14:03:16 -07:00
indirect_vertex_program.c
indirect_window_pos.c
Makefile.am glx/glvnd: automake: include all the sources in libglx_la_SOURCES 2016-05-30 17:53:44 +01:00
packrender.h
packsingle.h
pixel.c
pixelstore.c
query_renderer.c
render2.c
renderpix.c
SConscript scons: whitespace cleanup 2016-05-25 12:23:12 -06:00
single2.c
singlepix.c
vertarr.c
XF86dri.c
xf86dri.h
xf86dristr.h
xfont.c