Re: [BUG/PATCH] backend crashes during authentication if data/global/pg_pwd is empty

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Wildpaner <mike(at)rainbow(dot)studorg(dot)tuwien(dot)ac(dot)at>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [BUG/PATCH] backend crashes during authentication if data/global/pg_pwd is empty
Date: 2003-12-05 15:37:53
Message-ID: 21239.1070638673@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Michael Wildpaner <mike(at)rainbow(dot)studorg(dot)tuwien(dot)ac(dot)at> writes:
> + /* fail if there is nothing to search in */
> + if ((user_sorted == NULL) || (user_length == 0))
> + return NULL;

Hm, Solaris' bsearch() fails on empty input? How bizarre.
Easily worked around though --- thanks for the report!

I suspect we'd better put a defense in get_group_line as well.
It looks like there are no other places at risk in the backend.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2003-12-05 15:44:16 7.4.1 looking good for Wednesday?
Previous Message Michael Wildpaner 2003-12-05 14:59:31 [BUG/PATCH] backend crashes during authentication if data/global/pg_pwd is empty