Re: use-after-free in psql - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: use-after-free in psql
Date
Msg-id 20060630144132.GA22114@surnet.cl
Whole thread Raw
In response to use-after-free in psql  (Neil Conway <neilc@samurai.com>)
List 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

pgsql-bugs by date:

Previous
From: Greg Sabino Mullane
Date:
Subject: Re: use-after-free in psql
Next
From: "N. Ramirez"
Date:
Subject: BUG #2507: Problem using two-phase commit