• Olivier Fourdan's avatar
    glx: check for indirect context in CreateContextAttribsARB() · 75448671
    Olivier Fourdan authored
    Commit 99f0365b "Add a command line argument for disabling indirect GLX"
    added a test to check if indirect context are enabled in
    `DoCreateContext()` but `__glXDisp_CreateContextAttribsARB()` doesn't
    use `DoCreateContext()` and doesn't check if indirect context is
    enabled.
    
    As a result, clients can still manage to create indirect contexts using
    `glXCreateContextAttribsARB()` even if indirect contexts are disabled,
    which can possibly crash Xservers such as Xwayland or Xephyr when the
    context is destroyed.
    
    To avoid the issue, check for `enableIndirectGLX` in
    `__glXDisp_CreateContextAttribsARB()` as well.
    
    Fixes: 99f0365b "Add a command line argument for disabling indirect GLX"
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107508Signed-off-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
    75448671
Name
Last commit
Last update
..
Makefile.am Loading commit data...
clientinfo.c Loading commit data...
createcontext.c Loading commit data...
extension_string.c Loading commit data...
extension_string.h Loading commit data...
glxbyteorder.h Loading commit data...
glxcmds.c Loading commit data...
glxcmdsswap.c Loading commit data...
glxcontext.h Loading commit data...
glxdrawable.h Loading commit data...
glxdri2.c Loading commit data...
glxdricommon.c Loading commit data...
glxdricommon.h Loading commit data...
glxdriswrast.c Loading commit data...
glxext.c Loading commit data...
glxext.h Loading commit data...
glxscreens.c Loading commit data...
glxscreens.h Loading commit data...
glxserver.h Loading commit data...
glxutil.h Loading commit data...
indirect_dispatch.c Loading commit data...
indirect_dispatch.h Loading commit data...
indirect_dispatch_swap.c Loading commit data...
indirect_program.c Loading commit data...
indirect_reqsize.c Loading commit data...
indirect_reqsize.h Loading commit data...
indirect_size.h Loading commit data...
indirect_size_get.c Loading commit data...
indirect_size_get.h Loading commit data...
indirect_table.c Loading commit data...
indirect_table.h Loading commit data...
indirect_texture_compression.c Loading commit data...
indirect_util.c Loading commit data...
indirect_util.h Loading commit data...
meson.build Loading commit data...
render2.c Loading commit data...
render2swap.c Loading commit data...
renderpix.c Loading commit data...
renderpixswap.c Loading commit data...
rensize.c Loading commit data...
single2.c Loading commit data...
single2swap.c Loading commit data...
singlepix.c Loading commit data...
singlepixswap.c Loading commit data...
singlesize.c Loading commit data...
singlesize.h Loading commit data...
swap_interval.c Loading commit data...
unpack.h Loading commit data...
vnd_dispatch_stubs.c Loading commit data...
vndcmds.c Loading commit data...
vndext.c Loading commit data...
vndserver.h Loading commit data...
vndservermapping.c Loading commit data...
vndservervendor.c Loading commit data...
vndservervendor.h Loading commit data...
xfont.c Loading commit data...