]> jfr.im git - irc/weechat/weechat.git/commitdiff
core: increase buffer size in HTTP proxy connection
authorSébastien Helleu <redacted>
Sat, 21 Nov 2020 20:11:14 +0000 (21:11 +0100)
committerSébastien Helleu <redacted>
Sat, 21 Nov 2020 20:13:13 +0000 (21:13 +0100)
In case of long address/username/password, the HTTP CONNECT message could be
truncated.

src/core/wee-network.c

index a9f0e1df3d1b65d5fb0b5c230313e0cdaec2630b..16a7668a46a8f8d77707eb11746dda4677d9d6ac 100644 (file)
@@ -236,7 +236,7 @@ int
 network_pass_httpproxy (struct t_proxy *proxy, int sock, const char *address,
                         int port)
 {
-    char buffer[256], authbuf[128], authbuf_base64[512], *username, *password;
+    char buffer[4096], authbuf[128], authbuf_base64[512], *username, *password;
     int length;
 
     if (CONFIG_STRING(proxy->options[PROXY_OPTION_USERNAME])