aboutsummaryrefslogtreecommitdiffstats
path: root/community/greenbone-security-assistant/musl-stack-size.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/greenbone-security-assistant/musl-stack-size.patch')
-rw-r--r--community/greenbone-security-assistant/musl-stack-size.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/community/greenbone-security-assistant/musl-stack-size.patch b/community/greenbone-security-assistant/musl-stack-size.patch
new file mode 100644
index 0000000000..8a64f23557
--- /dev/null
+++ b/community/greenbone-security-assistant/musl-stack-size.patch
@@ -0,0 +1,28 @@
+diff --git a/gsad/src/gsad.c b/gsad/src/gsad.c
+index efdecfc..7d7e13d 100644
+--- a/gsad/src/gsad.c
++++ b/gsad/src/gsad.c
+@@ -2598,6 +2598,7 @@ start_unix_http_daemon (const char *unix_socket_path,
+ 0, NULL, NULL, handler, http_handlers, MHD_OPTION_NOTIFY_COMPLETED,
+ free_resources, NULL, MHD_OPTION_LISTEN_SOCKET, unix_socket,
+ MHD_OPTION_PER_IP_CONNECTION_LIMIT, get_per_ip_connection_limit (),
++ MHD_OPTION_THREAD_STACK_SIZE, (size_t) 4*1024*1024,
+ MHD_OPTION_EXTERNAL_LOGGER, mhd_logger, NULL, MHD_OPTION_END);
+ }
+
+@@ -2626,6 +2627,7 @@ start_http_daemon (int port,
+ port, NULL, NULL, handler, http_handlers, MHD_OPTION_NOTIFY_COMPLETED,
+ free_resources, NULL, MHD_OPTION_SOCK_ADDR, address,
+ MHD_OPTION_PER_IP_CONNECTION_LIMIT, get_per_ip_connection_limit (),
++ MHD_OPTION_THREAD_STACK_SIZE, (size_t) 4*1024*1024,
+ MHD_OPTION_EXTERNAL_LOGGER, mhd_logger, NULL, MHD_OPTION_END);
+ }
+
+@@ -2653,6 +2655,7 @@ start_https_daemon (int port, const char *key, const char *cert,
+ key, MHD_OPTION_HTTPS_MEM_CERT, cert, MHD_OPTION_NOTIFY_COMPLETED,
+ free_resources, NULL, MHD_OPTION_SOCK_ADDR, address,
+ MHD_OPTION_PER_IP_CONNECTION_LIMIT, get_per_ip_connection_limit (),
++ MHD_OPTION_THREAD_STACK_SIZE, (size_t) 4*1024*1024,
+ MHD_OPTION_HTTPS_PRIORITIES, priorities, MHD_OPTION_EXTERNAL_LOGGER,
+ mhd_logger, NULL,
+ /* LibmicroHTTPD 0.9.35 and higher. */