Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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.

In response to

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group