aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2011-06-17 14:40:03 +0800
committerale <ale@FreeBSD.org>2011-06-17 14:40:03 +0800
commitb012cf61284543080e25f6533f43760c6daba6d5 (patch)
treec8b552e9ec04443df8ad0a50a1e25de8edd9ea4d /net
parente8426c0ce9875ada8b007c8d42653be77144ac40 (diff)
downloadfreebsd-ports-gnome-b012cf61284543080e25f6533f43760c6daba6d5.tar.gz
freebsd-ports-gnome-b012cf61284543080e25f6533f43760c6daba6d5.tar.zst
freebsd-ports-gnome-b012cf61284543080e25f6533f43760c6daba6d5.zip
Fix CVE-2011-1148, CVE-2011-1938 and CVE-2011-2202.
Bump PORTREVISION.
Diffstat (limited to 'net')
-rw-r--r--net/php5-sockets/files/patch-sockets.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/php5-sockets/files/patch-sockets.c b/net/php5-sockets/files/patch-sockets.c
new file mode 100644
index 000000000000..68e0a8e5fd6e
--- /dev/null
+++ b/net/php5-sockets/files/patch-sockets.c
@@ -0,0 +1,14 @@
+--- sockets.c.orig 2011/05/23 23:51:28
++++ sockets.c 2011/05/24 00:05:50
+@@ -1336,6 +1336,11 @@
+ break;
+
+ case AF_UNIX:
++ if (addr_len >= sizeof(s_un.sun_path)) {
++ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Path too long", php_sock->type);
++ RETURN_FALSE;
++ }
++
+ memset(&s_un, 0, sizeof(struct sockaddr_un));
+
+ s_un.sun_family = AF_UNIX;