Date: Tue, 23 Feb 2010 00:40:02 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/compat/linux linux_socket.c Message-ID: <201002230040.o1N0eJJQ070338@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
delphij 2010-02-23 00:40:02 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
sys/compat/linux linux_socket.c
Log:
SVN rev 204232 on 2010-02-23 00:40:02Z by delphij
MFC r203728:
- Return EAFNOSUPPORT instead of EINVAL for unsupported address family,
this matches the Linux behavior.
- Check if we have sufficient space allocated for socket structure, which
fixes a buffer overflow when wrong length is being passed into the
emulation layer. [1]
PR: kern/138860
Submitted by: Mateusz Guzik <mjguzik gmail com>
Reported by: Alexander Best [1]
Revision Changes Path
1.101.2.3 +7 -2 src/sys/compat/linux/linux_socket.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002230040.o1N0eJJQ070338>
