aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
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;