This is a discussion on use-after-free in psql within the pgsql Bugs forums, part of the PostgreSQL category; --> There's a minor bug in the ON_ERROR_ROLLBACK code in psql. In HEAD, at line 878 the storage pointed to ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster |
| ||||
| 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. ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq |