svn commit: r250890 - head/sys/kern
Gleb Smirnoff
glebius at FreeBSD.org
Wed May 22 09:21:57 UTC 2013
On Tue, May 21, 2013 at 09:58:01PM +0000, Mateusz Guzik wrote:
M> Author: mjg
M> Date: Tue May 21 21:58:00 2013
M> New Revision: 250890
M> URL: http://svnweb.freebsd.org/changeset/base/250890
M>
M> Log:
M> passing fd over unix socket: fix a corner case where caller
M> wants to pass no descriptors.
M>
M> Previously the kernel would leak memory and try to free a potentially
M> arbitrary pointer.
M>
M> Reviewed by: pjd
Is it possible to make code more strict: assert that fdcount > 0, and
do not perform any processing if number of fds is 0?
Prototype patch against r250890 attached.
--
Totus tuus, Glebius.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uipc_usrreq.c.diff
Type: text/x-diff
Size: 1657 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20130522/0299add0/attachment.diff>
More information about the svn-src-head
mailing list