Re: [BUGS] user authentication crash by Erik Luke (20-08-2001; 1.3kb) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [BUGS] user authentication crash by Erik Luke (20-08-2001; 1.3kb)
Date
Msg-id 20819.1004592505@sss.pgh.pa.us
Whole thread Raw
Responses Re: [BUGS] user authentication crash by Erik Luke
List pgsql-hackers
"Thomas Yackel" <yackelt@ohsu.edu> writes:
> I got the error: "Bad abstime external representation ''" when attempted to start psql as a particular user and the
postmastershutdown.
 

> The problem, we discovered, is that this user had a carriage return contained within his password.  Changing the
passwordto remove the CR avoided the system shutdown.
 

Hmm.  I can see how a linefeed in a password would create a problem (it
breaks the line-oriented formatting of the pg_pwd file).  However, I
can't reproduce a postmaster crash here.  Either I'm not testing the
right combination of circumstances, or current sources are more robust
about this than 7.1.  That's not unlikely given that Bruce rewrote the
password-file-parsing code a couple months ago.

In any case it seems like it'd be a good idea to forbid nonprinting
characters in passwords.  Comments anyone?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Olivier PRENANT
Date:
Subject: Re: Regression error on unixware 7 and open unix 8
Next
From: Tom Lane
Date:
Subject: Re: Warnings in CVS build