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

2003-12-05 Thread Michael Wildpaner
Hi, on Solaris 9 with PostgreSQL 7.4: when you - 'initdb' a fresh database, - _don't_ set a password for user 'postgres', - convert the 'trust' lines in data/pg_hba.conf to 'md5' or 'password' and then try to connect as user 'postgres', the backend crashes in backend/libpq/hba.c:372:

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

2003-12-05 Thread Tom Lane
Michael Wildpaner [EMAIL PROTECTED] 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

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

2003-12-05 Thread Tom Lane
Hm, Solaris' bsearch() fails on empty input? How bizarre. I was skeptical but apparently this is a known bug ... googling turned up a couple of references, eg http://www.opencm.org/pipermail/opencm-dev/2002-July/001077.html regards, tom lane

Re: [HACKERS] [BUG/PATCH] backend crashes during authentication if

2003-12-05 Thread Michael Wildpaner
Hi, On Fri, 5 Dec 2003, Tom Lane wrote: Hm, Solaris' bsearch() fails on empty input? How bizarre. I was skeptical but apparently this is a known bug ... googling turned up a couple of references, eg http://www.opencm.org/pipermail/opencm-dev/2002-July/001077.html in defense of Solaris'