wayland-server: Verify request versions before invoking handler
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 2 Jul 2013 18:57:10 +0000 (14:57 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 2 Jul 2013 21:01:46 +0000 (17:01 -0400)
commita09d7f0d60143653f0bd3e569e8bc4fcef73eeba
tree4397f24aef3d00267757dd8c6ca06e5b1e175968
parent4917a967bdcd33b7ad264af9c984c3957d87f569
wayland-server: Verify request versions before invoking handler

This commit provides a layer of protection for the compositor in the form
of message version checking.  We track version information in the
wl_resource and now use this version information to verify that a request
exists in that protocol version before invoking it.  This way libwayland
won't accidentally invoke a request that does not exist and thereby cause
the compositor to crash.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
src/wayland-server.c