]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4671 pt2: GCC 7: raise FTP Gateway CTRL channel buffer to 16KB
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 21 Jun 2017 19:54:39 +0000 (07:54 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 21 Jun 2017 19:54:39 +0000 (07:54 +1200)
Fixes
 error: %s directive output may be truncated writing up to 8191 bytes
        into a region of size 1019
 note: snprintf output between 8 and 8199 bytes into a destination of
       size 1024

src/clients/FtpGateway.cc

index bf9560d589d89c359400b38adbb13287a2400093..cd27d86582f1fa0f0f23df6e508460b157d9df4e 100644 (file)
@@ -192,7 +192,7 @@ typedef struct {
 
 #define FTP_LOGIN_NOT_ESCAPED   0
 
-#define CTRL_BUFLEN 1024
+#define CTRL_BUFLEN 16*1024
 static char cbuf[CTRL_BUFLEN];
 
 /*