xcb/x11: reject unsupported visual classes
Previously in vlc_xcb_VisualToFormat() we didn't do any depth checking on visuals unless they are TrueColor or StaticGray. Thus, other visuals would proceed further through the function and either get accidentally treated as a TrueColor visual or even hit vlc_assert_unreachable() if the visual's depth isn't one that we supported. We now return false on unsupported visual classes.
parent
ccee256f
No related branches found
No related tags found
Please register or sign in to comment