diff options
author | Pedro Filipe <xpecex@outlook.com> | 2018-08-30 01:27:11 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-08-30 14:41:21 +0000 |
commit | ac1767b7571304789f0a6898993b68a0ebd49d37 (patch) | |
tree | 588c78a2fa47efabb8c8d3e8162113dfd1e1d68d /main/varnish/musl-fix-stack-overflow.patch | |
parent | 7e0b367fc97f0270516dd83acf00c528dd7e4e00 (diff) | |
download | aports-ac1767b7571304789f0a6898993b68a0ebd49d37.tar.bz2 aports-ac1767b7571304789f0a6898993b68a0ebd49d37.tar.xz |
main/varnish: upgrade to 6.0.1
Diffstat (limited to 'main/varnish/musl-fix-stack-overflow.patch')
-rw-r--r-- | main/varnish/musl-fix-stack-overflow.patch | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/main/varnish/musl-fix-stack-overflow.patch b/main/varnish/musl-fix-stack-overflow.patch deleted file mode 100644 index aa83336ad4..0000000000 --- a/main/varnish/musl-fix-stack-overflow.patch +++ /dev/null @@ -1,38 +0,0 @@ -diff --git a/bin/varnishd/waiter/cache_waiter_epoll.c b/bin/varnishd/waiter/cache_waiter_epoll.c -index 9e2e2a3..3b0105a 100644 ---- a/bin/varnishd/waiter/cache_waiter_epoll.c -+++ b/bin/varnishd/waiter/cache_waiter_epoll.c -@@ -38,6 +38,7 @@ - #include <sys/epoll.h> - - #include <errno.h> -+#include <stdlib.h> - - #include "cache/cache_varnishd.h" - -@@ -69,7 +70,7 @@ struct vwe { - static void * - vwe_thread(void *priv) - { -- struct epoll_event ev[NEEV], *ep; -+ struct epoll_event *ev, *ep; - struct waited *wp; - struct waiter *w; - double now, then; -@@ -82,6 +83,8 @@ vwe_thread(void *priv) - CHECK_OBJ_NOTNULL(w, WAITER_MAGIC); - THR_SetName("cache-epoll"); - THR_Init(); -+ ev = malloc(sizeof(struct epoll_event) * NEEV); -+ AN(ev); - - now = VTIM_real(); - while (1) { -@@ -146,6 +149,7 @@ vwe_thread(void *priv) - if (vwe->nwaited == 0 && vwe->die) - break; - } -+ free(ev); - closefd(&vwe->pipe[0]); - closefd(&vwe->pipe[1]); - closefd(&vwe->epfd); |