From d80706b5f0e79e4439bb1c069bce2318c537c71c Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 12 Aug 2011 12:09:57 +0200 Subject: [PATCH] core: fix too small buffer for encoded base64 string used to authenticate with http proxy --- src/core/wee-network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/wee-network.c b/src/core/wee-network.c index b0fdf5e70..f611d771a 100644 --- a/src/core/wee-network.c +++ b/src/core/wee-network.c @@ -142,7 +142,7 @@ int network_pass_httpproxy (struct t_proxy *proxy, int sock, const char *address, int port) { - char buffer[256], authbuf[128], authbuf_base64[196]; + char buffer[256], authbuf[128], authbuf_base64[512]; int n, m; if (CONFIG_STRING(proxy->options[PROXY_OPTION_USERNAME])