Re: BUG #15541: Use after release in PQprint

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #15541: Use after release in PQprint
Дата
Msg-id 15915.1544205176@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #15541: Use after release in PQprint  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #15541: Use after release in PQprint  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> The function PQprint releases the file hander fout via pclose or _pclose
> when usePipe is true. After that, fout is used again to write message
> "fputs("</table>\n", fout);".

Wow, that is ancient.  It looks like commit edb519b14 of 27-Jul-1996
added the pipe close stanza in the wrong place, and nobody's noticed
it since.  That's probably not so surprising given the multiple
conditions required to trigger it plus the fact that this whole
function is, if not completely dead code, at least not used anywhere
in the PG distribution.  Still, we oughta fix it.

Thanks for the report!

            regards, tom lane


В списке pgsql-bugs по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #15540: Use after release in ExecuteTruncateGuts
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #15541: Use after release in PQprint