From: Amos Jeffries Date: Wed, 21 Jun 2017 19:54:39 +0000 (+1200) Subject: Bug 4671 pt2: GCC 7: raise FTP Gateway CTRL channel buffer to 16KB X-Git-Tag: SQUID_3_5_28~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93454e65b0f71ae6ff981fb74ac0ccc099078cb7;p=thirdparty%2Fsquid.git Bug 4671 pt2: GCC 7: raise FTP Gateway CTRL channel buffer to 16KB 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 --- diff --git a/src/clients/FtpGateway.cc b/src/clients/FtpGateway.cc index bf9560d589..cd27d86582 100644 --- a/src/clients/FtpGateway.cc +++ b/src/clients/FtpGateway.cc @@ -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]; /*