Make the module not depend on QtBase configure
[profile/ivi/qtwayland.git] / patches / 0001-Removed-superfluous-call-to-wl_copy_connection.patch
1 From 42a5ccf0f6e42c1487fef1d5422939bc6836044d Mon Sep 17 00:00:00 2001
2 From: Andy Nichols <andy.nichols@nokia.com>
3 Date: Thu, 24 Nov 2011 10:19:18 +0100
4 Subject: [PATCH 1/2] Removed superfluous call to wl_copy_connection
5
6 The only purpose those code seems to serve is to introduce a buffer
7 overflow when events contain more than 128 bytes of data.
8 ---
9  src/wayland-client.c |    2 --
10  1 files changed, 0 insertions(+), 2 deletions(-)
11
12 diff --git a/src/wayland-client.c b/src/wayland-client.c
13 index 939c17d..fd5a8fa 100644
14 --- a/src/wayland-client.c
15 +++ b/src/wayland-client.c
16 @@ -445,12 +445,10 @@ static void
17  handle_event(struct wl_display *display,
18              uint32_t id, uint32_t opcode, uint32_t size)
19  {
20 -       uint32_t p[32];
21         struct wl_proxy *proxy;
22         struct wl_closure *closure;
23         const struct wl_message *message;
24  
25 -       wl_connection_copy(display->connection, p, size);
26         proxy = wl_map_lookup(&display->objects, id);
27  
28         if (proxy == WL_ZOMBIE_OBJECT) {
29 -- 
30 1.7.8.rc2
31