From f598691831db779aab1f5dd17ace5992a0928960 Mon Sep 17 00:00:00 2001 From: Andy Nichols Date: Thu, 24 Nov 2011 10:19:18 +0100 Subject: [PATCH] Removed superfluous call to wl_copy_connection The only purpose those code seems to serve is to introduce a buffer overflow when events contain more than 128 bytes of data. --- src/wayland-client.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wayland-client.c b/src/wayland-client.c index 836a31c0..e4f2c99c 100644 --- a/src/wayland-client.c +++ b/src/wayland-client.c @@ -453,12 +453,10 @@ static void handle_event(struct wl_display *display, uint32_t id, uint32_t opcode, uint32_t size) { - uint32_t p[32]; struct wl_proxy *proxy; struct wl_closure *closure; const struct wl_message *message; - wl_connection_copy(display->connection, p, size); proxy = wl_map_lookup(&display->objects, id); if (proxy == WL_ZOMBIE_OBJECT) {