Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOsKS-0001Db-PV for pgsql-committers@arkaria.postgresql.org; Tue, 12 Dec 2017 21:43:08 +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 1eOsKR-0005sK-U6 for pgsql-committers@arkaria.postgresql.org; Tue, 12 Dec 2017 21:43:07 +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_2) (envelope-from ) id 1eOsKR-0005sA-MO for pgsql-committers@lists.postgresql.org; Tue, 12 Dec 2017 21:43:07 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eOsKL-0004TM-5O for pgsql-committers@postgresql.org; Tue, 12 Dec 2017 21:43:06 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vBCLgx8g025439; Tue, 12 Dec 2017 16:42:59 -0500 From: Tom Lane To: Peter Eisentraut cc: pgsql-committers@postgresql.org Subject: Re: pgsql: PL/Python: Fix potential NULL pointer dereference In-reply-to: References: <26463.1511886937@sss.pgh.pa.us> <16695.1512503159@sss.pgh.pa.us> Comments: In-reply-to Peter Eisentraut message dated "Tue, 12 Dec 2017 12:10:21 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25437.1513114979.1@sss.pgh.pa.us> Date: Tue, 12 Dec 2017 16:42:59 -0500 Message-ID: <25438.1513114979@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > On 12/5/17 14:45, Tom Lane wrote: >> On the whole it seems like it might be better to dodge this whole business >> of changing "result" inside the TRY. You could do that if you did >> something like ... > Yeah, that looks much better. Next try attached. Looks sane to me. regards, tom lane