Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aXYZy-0007Wh-EE for pgsql-committers@arkaria.postgresql.org; Sun, 21 Feb 2016 18:17:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aXYZx-0001OP-Jv for pgsql-committers@arkaria.postgresql.org; Sun, 21 Feb 2016 18:17:57 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aXYZw-0001NY-DE for pgsql-committers@postgresql.org; Sun, 21 Feb 2016 18:17:56 +0000 Received: from 104-190-1-44.lightspeed.sndgca.sbcglobal.net ([104.190.1.44] helo=joeconway.com) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aXYZs-0001Aw-TW for pgsql-committers@postgresql.org; Sun, 21 Feb 2016 18:17:54 +0000 Received: from [72.214.29.243] (account jconway@joeconway.com HELO [192.168.4.41]) by joeconway.com (CommuniGate Pro SMTP 6.1.4) with ESMTPSA id 16170405; Sun, 21 Feb 2016 10:17:51 -0800 Subject: Re: pgsql: Cosmetic improvements in new config_info code. To: Tom Lane , pgsql-committers@postgresql.org References: From: Joe Conway X-Enigmail-Draft-Status: N1110 Message-ID: <56C9FF4F.7010603@joeconway.com> Date: Sun, 21 Feb 2016 10:17:51 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="M4xq00belskfOGuC2v4xUgQwta2e8A76F" X-Pg-Spam-Score: -0.9 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --M4xq00belskfOGuC2v4xUgQwta2e8A76F Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 02/21/2016 08:38 AM, Tom Lane wrote: > Coverity griped about use of unchecked strcpy() into a local variable. > There's unlikely to be any actual bug there, since no caller would be > passing a path longer than MAXPGPATH, but nonetheless use of strlcpy() > seems preferable. FWIW, strcpy() was being used in src/bin/pg_config/pg_config.c that I started with -- does that mean we are not getting Coverity coverage of src/bin? > While at it, get rid of unmaintainable separation between list of > field names and list of field values in favor of initializing them > in parallel. I waffled back and forth about doing something similar and apparently landed on the wrong side of it :-). I'll take a similar tack with the controldata patch that I'm trying to get over the finish line. Joe --=20 Crunchy Data - http://crunchydata.com PostgreSQL Support for Secure Enterprises Consulting, Training, & Open Source Development --M4xq00belskfOGuC2v4xUgQwta2e8A76F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWyf9PAAoJEDfy90M199hlYKcP/3zVIxG1MwqWWYGWbOf+Lz96 bDjf7xg2J7nFAVFrJZ5ANJGfaouZ6f55uLGcqzT8O6tAInagvMFHQVjiIy4hVFa3 INgQ/mV91FBcQ+97iyPOZkd3x3fA83UTq1Qt460exCoTcueIQdyxIHajWgh9wHNE npGl1eoGLm1NaOn67AwHdpKYcQIe0vZlWn38zpTELVOl6pxeX6lLy0yrUV4cyc0K NvKeEQCaDW2evFOon4VA/iagb0FJRoBmk7UMLxjkQjcoN/P0EU/OucAbVRIQbSh4 zsz3LTvzLh+KVUeq5Cda9XN+jNP/V8G9OrcuLCLXfia9SQLbWx/8yOEW1C2r6Clj lEnYW4OO2HKEHzpcE1VCSLcssGMxiiVb9oUA+R5tID5ISClQ0zhBOwk4k1hy3Qjh dOulrpxVhdOMXNKgH6zBnzFZLJGCsVTTcr9BqiWhyLPsCkrLCGbT6HKAmwtm5tPi bYbwN428Rg35H1tnNxmkKMiIFmHS41pX+Q6Gel0Vp/anl7tS9MHqRDw5c7hbeqNT KrAjQNW4EwZ1zehMQ1XW+Rb/fkLwty5ikt6J2FtUHbN4vSsybyrcIqsKQWQ12zrV fduEhQeH/RiSaZ8OQItYZ/2QcARhFkdEy+8mkqi5NzZ6j37FL8HNGNYUaxRYWYo3 pjhlJ384u4ITxJXdJkGV =pNSB -----END PGP SIGNATURE----- --M4xq00belskfOGuC2v4xUgQwta2e8A76F--