[PATCH] connection: fixing cmsg buffer overflow

Fiedler, Mathias Mathias.Fiedler at xse.de
Fri Oct 7 01:47:07 PDT 2011


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, it just checks if new buffer data would exceed the space for file descriptors.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: connection-fixing-cmsg-buffer-overflow.patch
Type: text/x-patch
Size: 1799 bytes
Desc: connection-fixing-cmsg-buffer-overflow.patch
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20111007/3253af79/attachment.bin>

More information about the wayland-devel mailing list