Date: Tue, 23 Feb 2010 00:41:40 +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: <201002230041.o1N0ft0o070442@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
delphij 2010-02-23 00:41:40 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7)
sys/compat/linux linux_socket.c
Log:
SVN rev 204233 on 2010-02-23 00:41:40Z 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.74.2.13 +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?201002230041.o1N0ft0o070442>
