wayland/src
Simon Ser a277cc6d52 client: check event opcode in queue_event
If the client binds to a global with an interface mismatch, it may receive an
event from the server with an unknown opcode. See [1].

Instead of crashing, print a more useful debug message and close the connection.

[1]: https://gitlab.freedesktop.org/wayland/wayland/issues/113

Signed-off-by: Simon Ser <simon.ser@intel.com>
2019-09-05 11:01:12 +00:00
..
.gitignore ignore: Add *.dtd.embed 2016-03-10 22:24:20 -08:00
connection.c connection: do not abort when dup(fd) fails 2019-07-09 17:30:13 +00:00
dtddata.S dtddata: Use standard permission notice 2017-01-26 14:49:55 +00:00
event-loop.c Use wl_container_of internally 2019-06-05 09:58:14 +00:00
scanner.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:14:53 +02:00
wayland-client-core.h proxy: Add API to tag proxy objects 2019-07-29 16:47:36 +00:00
wayland-client-uninstalled.pc.in build: remove white space in -uninstalled.pc.in files 2018-02-16 14:41:08 +00:00
wayland-client.c client: check event opcode in queue_event 2019-09-05 11:01:12 +00:00
wayland-client.h doc: Formalize file comment in wayland-client.h, wayland-server.h 2016-05-11 11:03:27 -07:00
wayland-client.pc.in Export the Wayland protocol XML file 2013-09-21 21:48:56 -07:00
wayland-os.c src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-12 15:31:24 -07:00
wayland-os.h src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-12 15:31:24 -07:00
wayland-private.h Use wl_container_of internally 2019-06-05 09:58:14 +00:00
wayland-scanner-uninstalled.pc.in build: remove white space in -uninstalled.pc.in files 2018-02-16 14:41:08 +00:00
wayland-scanner.pc.in build: Add wayland-scanner.pc. 2013-07-03 16:38:12 -04:00
wayland-server-core.h proto, server: Add internal server error message. (v2) 2019-01-29 15:58:19 +02:00
wayland-server-uninstalled.pc.in build: remove white space in -uninstalled.pc.in files 2018-02-16 14:41:08 +00:00
wayland-server.c server: Fix fake "Address already in use" error 2019-08-27 01:32:45 +08:00
wayland-server.h wayland-server: Finally remove deprecated struct wl_buffer definition 2018-07-25 12:08:16 -05:00
wayland-server.pc.in Export the Wayland protocol XML file 2013-09-21 21:48:56 -07:00
wayland-shm.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:14:53 +02:00
wayland-util.c Avoid pointer arithmetic on void * 2019-06-05 10:01:07 +00:00
wayland-util.h wayland-util.h: add forward declaration for wl_object 2019-03-07 11:33:26 +02:00
wayland-version.h.in src: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-12 15:31:24 -07:00