]> git.pld-linux.org Git - packages/php.git/blob - php-buff_ovf.patch
up to php-7.2.0RC6, likely last RC
[packages/php.git] / php-buff_ovf.patch
1 diff -ur php-5.3.6-orig//ext/sockets/sockets.c php-5.3.6//ext/sockets/sockets.c
2 --- php-5.3.6-orig//ext/sockets/sockets.c       2011-01-01 03:19:59.000000000 +0100
3 +++ php-5.3.6//ext/sockets/sockets.c    2011-05-24 07:09:54.592779164 +0200
4 @@ -1333,6 +1333,11 @@
5                         break;
6  
7                 case AF_UNIX:
8 +                       if (addr_len >= sizeof(s_un.sun_path)) {
9 +                                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Path too long", php_sock->type);
10 +                                       RETURN_FALSE;
11 +                               }
12 +
13                         memset(&s_un, 0, sizeof(struct sockaddr_un));
14  
15                         s_un.sun_family = AF_UNIX;
16 Tylko w php-5.3.6//ext/sockets: sockets.c~
This page took 0.031889 seconds and 3 git commands to generate.