Re: libpq crash fix [was: Provide a way to not ask for a password in psql] - Mailing list pgsql-bugs

From Magnus Hagander
Subject Re: libpq crash fix [was: Provide a way to not ask for a password in psql]
Date
Msg-id 20071009150449.GS3093@svr2.hagander.net
Whole thread Raw
In response to libpq crash fix [was: Provide a way to not ask for a password in psql]  (Martin Pitt <martin@piware.de>)
List pgsql-bugs
On Tue, Oct 09, 2007 at 04:32:02PM +0200, Martin Pitt wrote:
> Hi again,
>
> Martin Pitt [2007-10-09 15:56 +0200]:
> > (2) PGPASSFILE=/dev/null psql -l
> >
> >    With /dev/null I get a segfault (I'll probably send a patch for
> >    that later).
>
> Ah, it tried to free(pgpassfile) in PasswordFromFile(), but that is a
> local stack variable.
>
> Can you please apply this upstream?

Applied back to 8.1 which is where it appeared.

//Magnus

pgsql-bugs by date:

Previous
From: Martin Pitt
Date:
Subject: libpq crash fix [was: Provide a way to not ask for a password in psql]
Next
From: "blay bloo"
Date:
Subject: plpythonu execute - create function bug?