Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPUhI-0000vR-QJ for pgsql-committers@arkaria.postgresql.org; Wed, 12 Aug 2015 11:59:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZPUhI-0007Ee-1y for pgsql-committers@arkaria.postgresql.org; Wed, 12 Aug 2015 11:59:56 +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 1ZPUh6-00071M-3b for pgsql-committers@postgresql.org; Wed, 12 Aug 2015 11:59:44 +0000 Received: from gauss.credativ.com ([93.94.130.89]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZPUh3-0001gi-AC for pgsql-committers@postgresql.org; Wed, 12 Aug 2015 11:59:42 +0000 Received: from gauss.credativ.com (localhost [127.0.0.1]) by gauss.credativ.com (Postfix) with ESMTP id A8BD41B4276; Wed, 12 Aug 2015 13:59:38 +0200 (CEST) Received: from feivel (wan3.credativ.com [94.79.138.166]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mme@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id 986401B4274; Wed, 12 Aug 2015 13:59:38 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by feivel (Postfix) with ESMTP id A086A3FC41; Wed, 12 Aug 2015 13:59:37 +0200 (CEST) Subject: Re: pgsql: This routine was calling ecpg_alloc to allocate to memory but di To: Michael Paquier References: Cc: pgsql-committers@postgresql.org From: Michael Meskes Message-ID: <55CB3529.1040902@postgresql.org> Date: Wed, 12 Aug 2015 13:59:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.0.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) 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 On 23.07.2015 09:19, Michael Paquier wrote: > On Thu, Feb 5, 2015 at 11:14 PM, Michael Meskes wrote: >> This routine was calling ecpg_alloc to allocate to memory but did not >> actually check the returned pointer allocated, potentially NULL which >> could be the result of a malloc call. >> >> Issue noted by Coverity, fixed by Michael Paquier > > Coming back to it, perhaps this meritates a backpatch? Even if that's > unlikely to happen... cherry-picked and pushed to all back branches. Sorry, the disadvantage of testing in master for a while, I simply forgot about this change. Michael -- Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Meskes at (Debian|Postgresql) dot Org Jabber: michael.meskes at gmail dot com VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers