Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJkoX-0008S6-Js for pgsql-committers@arkaria.postgresql.org; Tue, 28 Nov 2017 18:41:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJkoX-000188-3g for pgsql-committers@arkaria.postgresql.org; Tue, 28 Nov 2017 18:41:01 +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 1eJkj1-0004MW-8l for pgsql-committers@lists.postgresql.org; Tue, 28 Nov 2017 18:35:19 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eJkix-0008Pj-IZ for pgsql-committers@postgresql.org; Tue, 28 Nov 2017 18:35:18 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 4E7A120A79; Tue, 28 Nov 2017 13:35:14 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Tue, 28 Nov 2017 13:35:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=HttvS9 oraJiS/GXoKrjDvnW+7H59L5YZf/v4u4WC0yQ=; b=lTaHpq2GTbAlmOBxxJdldk m7NYCmtHeTJOyh5DFfVlNFM3oyaMKDLefmcDLfk/YPgOcy+0eQabzO0FTbTq1M/n k6zQqtxDoeZgXzEDYrZRBXGLdnivJbqP9l0z5/O+9V1crWGPXzTLEDflrNe3sZam rj59EexT4zB3CXSJG7B+EddRJNKRWtY94n7ogZAJ9w/BwVh51pxRqY81LwyjcpN0 9zXs3UM8x3dUGkQg9lhdHhtgve88PzK2lfLnO8cEVHtuewdftI8f0azG8yNnaDbX 8Ycn7AC0N5NC3D+IU5KKAvn2+ritk+tmtSBeoJQFpgQkDPNsUJ6SMM9eckMk6MTQ == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 15D9D7EDB4; Tue, 28 Nov 2017 13:35:14 -0500 (EST) Subject: Re: pgsql: PL/Python: Fix potential NULL pointer dereference To: Tom Lane References: <26463.1511886937@sss.pgh.pa.us> Cc: pgsql-committers@postgresql.org From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Tue, 28 Nov 2017 13:35:13 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <26463.1511886937@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/28/17 11:35, Tom Lane wrote: > Peter Eisentraut writes: >> PL/Python: Fix potential NULL pointer dereference > > I do not think it's correct to just "return" out of the middle > of a PG_TRY block --- doesn't that result in failing to pop the > PG_exception_stack and error_context_stack? OK, I'll revert and rethink. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services