Re: Potential NULL dereference found in typecmds.c

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: Potential NULL dereference found in typecmds.c
Дата
Msg-id CAEYLb_Vw8c=a0menxRbbKpZhiUAnWjq3ATdU0TVv5xdZUVJAmg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Potential NULL dereference found in typecmds.c  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: Potential NULL dereference found in typecmds.c
Список 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 по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Potential NULL dereference found in typecmds.c
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Potential NULL dereference found in typecmds.c