[PATCH] connection: fixing cmsg buffer overflow

2011-10-07 Thread Fiedler, Mathias
Hi, the attachment is a patch for fixing a possible overflow of the local cmsg buffer in wl_connection_data. This error might happen when the number of pending file descriptors to be send exceeds 32. The condition i added in wl_connection_write for flushing the buffer is a bit too restrict,

[PATCH] wayland-server: fix resource destroy

2011-10-07 Thread Fiedler, Mathias
Hi, object id was read from freed memory. In rare cases i got errors where compositor was complaining about wrong or still used object ids. diff --git a/wayland/src/wayland-server.c b/wayland/src/wayland-server.c index a6cd88d..5eb7906 100644 --- a/wayland/src/wayland-server.c +++ b/wayland/src/