Re: [BUGS] use-after-free in psql

2006-06-30 Thread Alvaro Herrera
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 test

Re: [BUGS] use-after-free in psql

2006-06-30 Thread Greg Sabino Mullane
> 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

[BUGS] use-after-free in psql

2006-06-30 Thread Neil Conway
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!),