Re: Potential NULL dereference found in typecmds.c - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: Potential NULL dereference found in typecmds.c
Date
Msg-id CAEYLb_Vw8c=a0menxRbbKpZhiUAnWjq3ATdU0TVv5xdZUVJAmg@mail.gmail.com
Whole thread Raw
In response to Re: Potential NULL dereference found in typecmds.c  (Magnus Hagander <magnus@hagander.net>)
Responses Re: Potential NULL dereference found in typecmds.c
List pgsql-hackers
On 4 July 2011 13:53, Magnus Hagander <magnus@hagander.net> wrote:
> This code is no longer present in git head, *removed* by commit
> 426cafc. Not added by it. at least that's how I read the history...
>
> However, it still looks to me like we could get to that code with
> con=NULL - if the while loop is never executed. Perhaps this is a
> can-never-happen situation? Alvaro?

Seems slightly academic IMHO. No code path should dereference an
invariably NULL or wild pointer.

--
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Potential NULL dereference found in typecmds.c
Next
From: Heikki Linnakangas
Date:
Subject: Re: Potential NULL dereference found in typecmds.c