blob: cdafb61a186cb6a4015e68c83aeff849e8b00bd7 [file] [log] [blame] [raw]
Index: UPDATING
===================================================================
--- UPDATING (版本 299066)
+++ UPDATING (版本 300087)
@@ -16,6 +16,13 @@
stable/10, and then rebuild without this option. The bootstrap process from
older version of current is a bit fragile.
+20160517 p3 FreeBSD-SA-16:18.atkbd
+ FreeBSD-SA-16:19.sendmsg
+
+ Fix buffer overflow in keyboard driver. [SA-16:18]
+
+ Fix incorrect argument handling in sendmsg(2). [SA-16:19]
+
20160504 p2 FreeBSD-SA-16:17.openssl
FreeBSD-EN-16:06.libc
FreeBSD-EN-16:07.ipi
Index: sys/conf/newvers.sh
===================================================================
--- sys/conf/newvers.sh (版本 299066)
+++ sys/conf/newvers.sh (版本 300087)
@@ -32,7 +32,7 @@
TYPE="FreeBSD"
REVISION="10.3"
-BRANCH="RELEASE-p2"
+BRANCH="RELEASE-p3"
if [ "X${BRANCH_OVERRIDE}" != "X" ]; then
BRANCH=${BRANCH_OVERRIDE}
fi
Index: sys/dev/kbd/kbd.c
===================================================================
--- sys/dev/kbd/kbd.c (版本 299066)
+++ sys/dev/kbd/kbd.c (版本 300087)
@@ -996,7 +996,7 @@
splx(s);
return (error);
}
- kbd->kb_fkeytab[fkeyp->keynum].len = imin(fkeyp->flen, MAXFK);
+ kbd->kb_fkeytab[fkeyp->keynum].len = min(fkeyp->flen, MAXFK);
bcopy(fkeyp->keydef, kbd->kb_fkeytab[fkeyp->keynum].str,
kbd->kb_fkeytab[fkeyp->keynum].len);
break;
Index: sys/kern/uipc_syscalls.c
===================================================================
--- sys/kern/uipc_syscalls.c (版本 299066)
+++ sys/kern/uipc_syscalls.c (版本 300087)
@@ -1787,6 +1787,9 @@
struct mbuf *m;
int error;
+ if (buflen < 0)
+ return (EINVAL);
+
if (buflen > MLEN) {
#ifdef COMPAT_OLDSOCK
if (type == MT_SONAME && buflen <= 112)