Re: BUG #15104: Double free in the main function in ecpg.c

Поиск
Список
Период
Сортировка
От Michael Meskes
Тема Re: BUG #15104: Double free in the main function in ecpg.c
Дата
Msg-id 1520613211.2488.140.camel@postgresql.org
обсуждение исходный текст
Ответ на BUG #15104: Double free in the main function in ecpg.c  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #15104: Double free in the main function in ecpg.c
Список pgsql-bugs
> Details: In function main(), the memory hold by variable
> output_filename is
> freed at line 329. It then tries to parse the next command option.
> The freed
> memory will be freed again at line 478 if a crafted option bypass the
> memory
> allocation at line 316. I think set output_filename to NULL after the
> free
> operation at line 329 will fix the issue.
> ...

I haven't had time yet to look into this, but to speed things up, would
you have an example where the double free actually happens?

Thanks.

Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! SF 49ers! Use Debian GNU/Linux, PostgreSQL


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #15105: OpenTransientFile() should be paired with CloseTransientFile() rather than close()
Следующее
От: Kouber Saparev
Дата:
Сообщение: Unrecognized exception condition "deprecated_feature"