use-after-free in psql

From: Neil Conway <neilc(at)samurai(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Cc: Greg Sabino Mullane <greg(at)turnstep(dot)com>
Subject: use-after-free in psql
Date: 2006-06-30 00:15:09
Message-ID: 1151626510.5838.33.camel@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2006-06-30 14:25:39 Re: BUG #2506: hash index
Previous Message Jim C. Nasby 2006-06-29 21:58:11 Re: [BUGS] BUG #2505: Translations error in pgAdmin III