Re: use-after-free in psql

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org, Greg Sabino Mullane <greg(at)turnstep(dot)com>
Subject: Re: use-after-free in psql
Date: 2006-06-30 14:41:32
Message-ID: 20060630144132.GA22114@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Neil Conway wrote:
> There's a minor bug in the ON_ERROR_ROLLBACK code in psql. In HEAD, at
> line 878 the storage pointed to by "results" is released by a PQclear(),
> but is referenced by the PQcmdStatus() calls on lines 898, 899, and 900.

I think this is the fix for HEAD. I'll apply after testing it a bit
more.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

Attachment Content-Type Size
psql.patch text/plain 2.8 KB

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Greg Sabino Mullane 2006-06-30 14:41:51 Re: use-after-free in psql
Previous Message Tom Lane 2006-06-30 14:25:39 Re: BUG #2506: hash index