Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m8CCZ-0002pX-JX for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Jul 2021 01:48:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m8CCY-0006ac-J0 for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Jul 2021 01:48:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m8CCX-0006aT-R4 for pgsql-hackers@lists.postgresql.org; Tue, 27 Jul 2021 01:48:10 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m8CCV-0006hr-AM for pgsql-hackers@lists.postgresql.org; Tue, 27 Jul 2021 01:48:08 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 4FD705C011B; Mon, 26 Jul 2021 21:48:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 26 Jul 2021 21:48:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=PlhsPqTXpPBbXbvjGAeZQGF8d2T ngBOUJoNb1JPmdLU=; b=Ape/k3PQ/+7hbJe5Ns9HHA5qDmLI5V41Lwlj7Fb82fM YqA8O5aUWA0yxtxGfwMiIJGO1uGkal7KVY4/i8LwSkM/7TDb72pBJ4CaSiqszYcR xA3jaWp2vlmDsoQbeVLHgy5RFSjLXgdZTV12qtapUCuPljSQePPfSc1/f7pD07WS 2ZpoiZtERpeS5DS29vaIkNnQXmAnR5RVxNnaKuFdd1rQyTft20WuyKQeEcW7UPbN wvbz4wcO/QmeAyq4Mj8YJyHC011qcRYbrq24wX3lyMlEPuXBW+ujq1anlDWATKlE dE70YhiLFt6w3yd1shUzj65N8HQX+dzHn/ijuvdxqxg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=PlhsPq TXpPBbXbvjGAeZQGF8d2TngBOUJoNb1JPmdLU=; b=f2jPpw+0soietAQeWNAR63 zUePQpusVMl3DmOa+PQh/Bqvrin7OPDnEHkBvrOFtd4XOk5g5kbN/ZHFV46MbOSg 4XcnjnoQrQWeSO162jScEmNQTGj05Wwz/1zwoEWn47aOW7QIn2QstXYEsKI/+LLF t5vWosfSr/QsS5X+sSgHGYR/DdzRORHSYzpEFIMUkRyTLOdAXtzjSHZNDEjf9Ig1 W54Tanqe5ZZRSq/1aujSHzFMnZEf2ybdeHn+ULCg3GZat5dfHx7zhNnWgFeKkKcu rlrSghAJTud7pNEcqPnWhB9IiNg7mymR0SEJqc4ssYOOC9ZxVEVLPcXCK7TvYsig == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrgeeigdegudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdejtddmnecujfgurhepfffhvf fukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhi vghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnh epvdegudeuhfdtueeltedtveejheehieevueeigeelteegleejleeiueeiheegvefhnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrg gvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 26 Jul 2021 21:48:04 -0400 (EDT) Date: Tue, 27 Jul 2021 10:47:54 +0900 From: Michael Paquier To: Kyotaro Horiguchi Cc: dgrowleyml@gmail.com, alvherre@alvh.no-ip.org, bharath.rupireddyforpostgres@gmail.com, pgsql-hackers@lists.postgresql.org Subject: Re: Incorrect usage of strtol, atoi for non-numeric junk inputs Message-ID: References: <20210726.174622.826565852378770261.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gyrI2xxPT5sL8HPw" Content-Disposition: inline In-Reply-To: <20210726.174622.826565852378770261.horikyota.ntt@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --gyrI2xxPT5sL8HPw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jul 26, 2021 at 05:46:22PM +0900, Kyotaro Horiguchi wrote: > Thanks for revising and committing! I'm fine with all of the recent > discussions on the committed part. Though I don't think it works for > "live" command line options, making the omitting policy symmetric > looks good. I see the same done in several similar use of strto[il]. OK, applied this one. So for now we are done here. > The change in 020_pg_receivewal.pl results in a chain of four > successive failures, which is fine. But the last failure (#23) happens > for a bit dubious reason. Yes, I saw that as well. I'll address that separately. -- Michael --gyrI2xxPT5sL8HPw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmD/ZcoACgkQnvQgOdby QH2tnRAApUQawtF1fjnU5qT54QS6hECBgK8s62cKjj3E3oka4WIxsQCqZtW0ubzS MMUMcQfJ1I4ThOuKYNaXmD0ujZrat2g2MC0Hbwy+xyjLhT3FAM5+uXL4iZll3p35 cUydklPlGqLVxQkWXuK8gGu/KVVPMU7gMfXH+yo8onop93kKwz9eMvQCbH878Eli zfCAi829ovtoB5oFgtMfyNLfNBo5Fm3AZDNdwy9EVEvd1DnXWrCIQ0AUIuB4NbYx Nu5EZhHw44ZurRN2ARZ/p31HmIJT18VPw1j6bofLPT5TA7mMG9blc+vxXoyN2tGq mMld4xF3nwfrFoJ4L58IF6lrxzCZY3huGatT+A1VobvkVw/MdBCpGAzDFCe/rCh9 leNSQE7/wzgJtOf1Yk5ntqQ5Ed/kzf4cukvUGxQVMVg0BNIMMifXlQa7rmuxmKki Wp8lOsHjZPga0d5pGMuXu2vDzhSOn9tzCBsP38oQ17DNkyUxVKq5A/Ujg+z5BOcK l+Rhl4yZWrCcPay8Pno9YJN4E5XiD4E3WRNvfhASBgp0wKGsOsat7v9r9OmYFGcr BTaJbjuu/8xJitpVVQBToGaADEWWz4rjamGRkBRFgpI3LfPhmYAwvYHqLs7j3ZRH Lp5f14SZeom+oJ257zVFCQsEnIrcfUX9OdcUD7NKofRdqi8r6zE= =LpMI -----END PGP SIGNATURE----- --gyrI2xxPT5sL8HPw--