Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aXYsq-00006F-Cu for pgsql-hackers@arkaria.postgresql.org; Sun, 21 Feb 2016 18:37:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aXYsp-0005aT-Vk for pgsql-hackers@arkaria.postgresql.org; Sun, 21 Feb 2016 18:37:28 +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) (envelope-from ) id 1aXYsp-0005aN-DR for pgsql-hackers@postgresql.org; Sun, 21 Feb 2016 18:37:27 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aXYsh-0002OE-51 for pgsql-hackers@postgresql.org; Sun, 21 Feb 2016 18:37:26 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 5892C5F798; Sun, 21 Feb 2016 13:37:18 -0500 (EST) Date: Sun, 21 Feb 2016 13:37:18 -0500 From: Stephen Frost To: Joe Conway Cc: Tom Lane , pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Cosmetic improvements in new config_info code. Message-ID: <20160221183718.GT3331@tamriel.snowman.net> References: <56C9FF4F.7010603@joeconway.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6JoL6at4NbGKFQYV" Content-Disposition: inline In-Reply-To: <56C9FF4F.7010603@joeconway.com> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-61-generic (x86_64) X-Uptime: 13:35:23 up 201 days, 3:05, 10 users, load average: 0.07, 0.09, 0.10 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) 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 --6JoL6at4NbGKFQYV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Joe, all, * Joe Conway (mail@joeconway.com) wrote: > 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. >=20 > 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? Coverity does run against src/bin also. It's possible this was identified as an issue in pg_config.c, but, as Tom notes, it may not be an actual bug and might have been marked as a non-bug in Coverity. Thanks! Stephen --6JoL6at4NbGKFQYV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIbBAEBCgAGBQJWygPdAAoJEO1sijiDR2RVxegP9247oB6Ws+P7qnNqjqLL1/dS IHTNO49piKqYvS/NYH1ISy8AvtB6vBrB2zTrstDxWA0BnfR/Tg4UGO108zyFlTgz GeVisHvS4P7ZIbmOsHtLXv/C+AAN/IlJeJ30qYfmsqWJByNOrsxX9Ma/zRiKlQWA BPz9uBpA/Rbt6F94shG1AZuT67y0HIYvNC/AW8yIzcw2ngcV2yGWb9q0QOq9xU8k exmDQ3VdjIJsFg9f+M5hAG1e9nEorUZ2FEDbd2zXN5C2GrPLUuSLC3ogCcxhjusn SxBRYCMtXZI1HAjTnWHOfRP5R3fafWap+wQmc65Rc88+eqfXjw6imHmePgd3g5YE P2nPVUCYnu4c5gUuIY97vyZmLo8t+1TxqkvRse17aMWjYzQtNM1kPBlu3xJVR8IR vloymMGLNJkll3i4Eot7K6HhX/30oLVfPsMnxMJTQVTTfugEaEJ6RF7g3RUHJ0rq Wwt9gNfazGjYpl0SayXSbhTJRjTgnB7GvkehLBBQLdGA9ZSvQBqyuHDQufFa9B7r WUm7KqpI2hIH86wVWEI+jhh4fdFsfGPe2ZyTE2iwLY9NaqRM8HR2HJHUZGjV0OSV FcDgyEOz1l6L1ynMXPavfkfJV6EE1g02Rhb6Hn0sJsUSCZgmXCPtcJUn6oG/Bsr2 Il34XRvgdzLfJyjm5O8= =RMLf -----END PGP SIGNATURE----- --6JoL6at4NbGKFQYV--