diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-03-09 14:50:27 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-03-09 14:50:49 +0000 |
commit | 0bcfc95639bac88d738ef53264b4196865f3a8a3 (patch) | |
tree | dadee2ca146890870529e063d444aa7db0d69492 /community/greenbone-security-assistant/003-musl-stack-size.patch | |
parent | f1315f394671ec8b6f60f7294ac8a409c98df434 (diff) | |
download | aports-0bcfc95639bac88d738ef53264b4196865f3a8a3.tar.bz2 aports-0bcfc95639bac88d738ef53264b4196865f3a8a3.tar.xz |
community/greenbone-security-assistant: fixed segfault due to stack assuming is a glibc distro
Diffstat (limited to 'community/greenbone-security-assistant/003-musl-stack-size.patch')
-rw-r--r-- | community/greenbone-security-assistant/003-musl-stack-size.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/community/greenbone-security-assistant/003-musl-stack-size.patch b/community/greenbone-security-assistant/003-musl-stack-size.patch new file mode 100644 index 0000000000..686cdcd453 --- /dev/null +++ b/community/greenbone-security-assistant/003-musl-stack-size.patch @@ -0,0 +1,27 @@ +diff -ru greenbone-security-assistant-7.0.2.orig/src/gsad.c greenbone-security-assistant-7.0.2/src/gsad.c +--- greenbone-security-assistant-7.0.2.orig/src/gsad.c 2017-03-09 15:59:19.000000000 +0200 ++++ greenbone-security-assistant-7.0.2/src/gsad.c 2017-03-09 16:17:28.506470054 +0200 +@@ -5488,6 +5488,7 @@ + NULL, NULL, handler, NULL, MHD_OPTION_NOTIFY_COMPLETED, + free_resources, NULL, MHD_OPTION_LISTEN_SOCKET, unix_socket, + MHD_OPTION_PER_IP_CONNECTION_LIMIT, 30, ++ MHD_OPTION_THREAD_STACK_SIZE, (size_t) 4*1024*1024, + MHD_OPTION_EXTERNAL_LOGGER, mhd_logger, NULL, MHD_OPTION_END); + } + +@@ -5513,6 +5514,7 @@ + (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG | ipv6_flag, port, + NULL, NULL, handler, NULL, MHD_OPTION_NOTIFY_COMPLETED, + free_resources, NULL, MHD_OPTION_SOCK_ADDR, address, ++ MHD_OPTION_THREAD_STACK_SIZE, (size_t) 4*1024*1024, + MHD_OPTION_PER_IP_CONNECTION_LIMIT, 30, + MHD_OPTION_EXTERNAL_LOGGER, mhd_logger, NULL, MHD_OPTION_END); + } +@@ -5540,6 +5542,7 @@ + MHD_OPTION_HTTPS_MEM_CERT, cert, + MHD_OPTION_NOTIFY_COMPLETED, free_resources, NULL, + MHD_OPTION_SOCK_ADDR, address, ++ MHD_OPTION_THREAD_STACK_SIZE, (size_t) 4*1024*1024, + MHD_OPTION_PER_IP_CONNECTION_LIMIT, 30, + MHD_OPTION_HTTPS_PRIORITIES, priorities, + MHD_OPTION_EXTERNAL_LOGGER, mhd_logger, NULL, |