Skip to content

not checking advertised pixel formats for wl_shm could cause protocol violation #82

Description

@OldUser101

advertised pixel formats for wl_shm are never checked. support for argb8888 is naively assumed. while it is unlikely compositors wouldn't advertise this format, it would lead to fatal protocol violation if it does occur.

simplest solution to this is simply to check whether either argb8888 or xrgb8888 is set in the format mask, since these formats are effectively identical, xrgb8888 support is trivial. if either these formats aren't available, abort.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions