Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxbQm-0001my-T3 for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Apr 2017 15:40:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cxbQm-0006hg-BR for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Apr 2017 15:40:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cxbPF-0001MM-3t for pgsql-hackers@postgresql.org; Mon, 10 Apr 2017 15:39:05 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxbPC-00067b-Ay for pgsql-hackers@postgresql.org; Mon, 10 Apr 2017 15:39:04 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 5091B21C26EE; Mon, 10 Apr 2017 18:38:58 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru Date: Mon, 10 Apr 2017 18:35:24 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1491838738; bh=GuFOCPxdMKhAVNtlFX4Z+YcoFLzbVxJDH9SCqrA1Sr4=; h=From:To:Cc:Subject:References:In-Reply-To; b=Toya2ebRJfhmfZ3qwAApo6sA+8BuEOnojFXH7elg1GjM2qIngPmQi0o2Do6+asX+4 XgcDO2ML7nnRWK7cwm5STHm2zmYhB/zpFJv+RMP+0yTwElz+waWVL5bIXl0oD5S796 cp2wc9MPM+jva+9T2YuZgsI05+y8eeaM1DOYLBTU= From: Aleksander Alekseev To: Peter Eisentraut Cc: pgsql-hackers Subject: Re: GCC 7 warnings Message-ID: <20170410153524.GA13447@e733.localdomain> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.0 (2017-02-23) X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Peter, > c) Expand the target buffer sizes until the warning goes away. (Sample > patch attached.) I personally think it's a great patch. Unfortunately I don't have GCC 7.0 right now but at least it doesn't break anything on 6.3.1. Since there is no rush I would suggest to add an entry to the next commitfest, so this patch wouldn't accidentally be lost. As a side node I believe it would be great to replace all sprintf calls to snprintf just to be on a safe side. IIRC we did something similar to str* procedures not a long time ago. Unless there are any objections regarding this idea I'm willing to write such a patch. --=20 Best regards, Aleksander Alekseev --ZPt4rx8FFjLCG7dd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEECAokn0QZCoIHW4GpEEnCBLXCDtYFAljrpjkACgkQEEnCBLXC DtYVlg/8DainwyCBVEpm7VyRbbCOLq2FadAItErTlxaY3KozkYMBX4wQR+Oy+rfV na2slwi18Q9pF+aoVqpmwbEkj/gWjHhI1HoChZFv9sMXDE5Qn/6gxwpjFcIA3W+M ewfM09kshmqp2G5vtQObceZgp0u6EsyrAi47QeMDVzDcRPMqj8vRyndG+52erA2q ebVodXK8x5hDRCWhPtY/SSBrjeH67q2NjZAKWbX7py9qhVy0Z03VmGawZEorV2ZK FHnFCm8eWtGRjaQfEygz018tM6paoaJwRr8qLDL8KqzaQlf/BYecxo45lxtC7Dnr VwBAgirkhsJtwZR38i2pnpHA2ILJcPP+dLamUiJPaKXsLMGos3+7G1ZKH3xm0MMK L+hmraJx3jAf0huXVhxNjBYTXS4+xmo55WMETMM7TKY4FOUq/efi7ZMFjn0j6Cy5 rsVMZNfuJZI0KdndnhFjnBGRB6EbFXrf2YVnjpf+6Q/rE3EqqVIg0Yniwp+WBFPb sBHJYbL4TiDDfdO4HQve+mGP3Iq8B7EarEG+JXTRtZUtTrioQzKDOKCgDQhRx5dM hVHlsKvl+WJI3hKXhZirD5hNv0PWGLNTelRdytDtA5+2FLhkpsoVe9Y8jHVR+KQI vWaViRWghDeYMniokcvcs0FbDwE4tF/divalm/00RXucD1Ho2Bo= =0wka -----END PGP SIGNATURE----- --ZPt4rx8FFjLCG7dd--