diff options
author | Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> | 2012-03-09 12:51:42 +0200 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-03-10 16:01:46 -0500 |
commit | 73d4a53672c66fb2ad9576545a5aae3bad2483ed (patch) | |
tree | 9bbe3d01dc32f1b3f59c567a832f750a8ab1243e /TODO | |
parent | 46df9232faa5f2e154ad14b6b10ca2475dbbf83b (diff) |
The buffer used by wl_connection_data to receive a cmsg is 128 bytes
long. This can hold at most 28 fds but when a cmsg is generated for
sending the fds, there is no check for this limitation. The man page
for recvmsg does not show any way of recovering from MSG_CTRUNC, that
happens when the buffer supplied for cmsg is too short.
Fix this by flushing the data to be written instead of generating a
cmsg buffer longer than the maximum.
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions