Re: libpq crash fix [was: Provide a way to not ask for a password in psql]

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: libpq crash fix [was: Provide a way to not ask for a password in psql]
Date: 2007-10-09 15:04:49
Message-ID: 20071009150449.GS3093@svr2.hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-patches

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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message blay bloo 2007-10-09 15:30:06 plpythonu execute - create function bug?
Previous Message Martin Pitt 2007-10-09 14:32:02 libpq crash fix [was: Provide a way to not ask for a password in psql]

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2007-10-09 15:22:50 Re: Including Snapshot Info with Indexes
Previous Message Sergey V. Karpov 2007-10-09 14:32:02 Re: Preliminary patch for tsearch example dictionaries/parsers in contrib