[PATCH 1/4] http: increase MAX_BUF_LEN to 256k

Antonio Borneo borneo.antonio at gmail.com
Sun Dec 6 00:21:13 PST 2015


Need to handle new CSD trojan having size ~200k.

Signed-off-by: Antonio Borneo <borneo.antonio at gmail.com>
---
 http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/http.c b/http.c
index 5e3bcf5..a25ca34 100644
--- a/http.c
+++ b/http.c
@@ -33,7 +33,7 @@
 static int proxy_write(struct openconnect_info *vpninfo, char *buf, size_t len);
 static int proxy_read(struct openconnect_info *vpninfo, char *buf, size_t len);
 
-#define MAX_BUF_LEN 131072
+#define MAX_BUF_LEN 262144
 #define BUF_CHUNK_SIZE 4096
 
 struct oc_text_buf *buf_alloc(void)
-- 
2.6.2




More information about the openconnect-devel mailing list