pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Bill Parker <wp02855@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Cc: Michael Meskes <meskes@postgresql.org>
Subject: Re: Lack of Sanity Checking in file 'misc.c' for PostgreSQL 9.4.x
Date: Fri, 12 Jun 2015 15:06:35 +0200
Message-ID: <20150612130635.GC27586@feivel.credativ.lan> (raw)
In-Reply-To: <CAB7nPqRdAjUB9pTL3LRSQ33dr4qv-rvHduj2DJxibSVA0owTTA@mail.gmail.com>
References: <CAFrbyQy2U+OrNpqxdnLfXxEiO5M3RVr4SoS7Hrg3srBO8KS9dw@mail.gmail.com>
	<CAB7nPqRdAjUB9pTL3LRSQ33dr4qv-rvHduj2DJxibSVA0owTTA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Fri, Jun 12, 2015 at 03:53:43PM +0900, Michael Paquier wrote:
> (Adding Michael Meskes in CC:)

Thanks.

> Nice catch. Regarding your patch, it seems to me that this is not
> enough. I think that we should return NULL with ECPGget_sqlca in case
> of an OOM instead of logging a message with ecpg_log and let each code
> path decide what to do when sqlca is NULL. Some code paths can
> directly use ecpg_raise with ECPG_OUT_OF_MEMORY. Other code paths,
> like the ones in error.c will need to show up with appropriate error
> messages.

Agreed on all accounts.

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-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (7+ messages)  latest in thread

Message-ID: <20150612130635.GC27586@feivel.credativ.lan>
Permalink:  ../20150612130635.GC27586@feivel.credativ.lan/
Also on:    postgresql.org/message-id/20150612130635.GC27586@feivel.credativ.lan

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: meskes@postgresql.org, michael.paquier@gmail.com, wp02855@gmail.com
  Subject: Re: Lack of Sanity Checking in file 'misc.c' for PostgreSQL 9.4.x
  In-Reply-To: <20150612130635.GC27586@feivel.credativ.lan>
  References: <CAFrbyQy2U+OrNpqxdnLfXxEiO5M3RVr4SoS7Hrg3srBO8KS9dw@mail.gmail.com> <CAB7nPqRdAjUB9pTL3LRSQ33dr4qv-rvHduj2DJxibSVA0owTTA@mail.gmail.com> <20150612130635.GC27586@feivel.credativ.lan>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox