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

From Neil Conway
Subject use-after-free in psql
Date
Msg-id 1151626510.5838.33.camel@localhost
Whole thread Raw
Responses Re: use-after-free in psql
List pgsql-bugs
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'm busy at the moment -- if someone wants to fix this (backport to 8.1
please!), have at it. Otherwise I'll fix it this weekend.

-Neil

pgsql-bugs by date:

Previous
From: "Wagner Cipriano"
Date:
Subject: BUG #2506: hash index
Next
From: Tom Lane
Date:
Subject: Re: BUG #2506: hash index