]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
GCC7: raise FTP Gateway CTRL channel buffer to 16KB
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 7 Feb 2017 08:20:39 +0000 (21:20 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 7 Feb 2017 08:20:39 +0000 (21:20 +1300)
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 2f1a04ea59062b16de114e8b1a836db998c4726e..aa3f2e9b0db0ce482cb9892761d6297d084fc568 100644 (file)
@@ -189,7 +189,7 @@ typedef struct {
     char *link;
 } ftpListParts;
 
-#define CTRL_BUFLEN 1024
+#define CTRL_BUFLEN 16*1024
 static char cbuf[CTRL_BUFLEN];
 
 /*