Re: fix ecpg core dump when there's a very long struct variable name in .pgc file

Поиск
Список
Период
Сортировка
От Chen Huajun
Тема Re: fix ecpg core dump when there's a very long struct variable name in .pgc file
Дата
Msg-id 50B208D9.4060106@cn.fujitsu.com
обсуждение исходный текст
Ответ на Re: fix ecpg core dump when there's a very long struct variable name in .pgc file  (Michael Meskes <meskes@postgresql.org>)
Ответы Re: fix ecpg core dump when there's a very long struct variable name in .pgc file  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-hackers
> How on earth did you run into this? :)

ooh, first I saw the code accidentally,it looks a bit dangerous and differents from the function ECPGdump_a_simple()
above,
And then I tried to write a test to raise some errors.

Thanks for your comment,I will add the patch into commitfest later.
It maybe my first patch for open source.
And I am glad if I can do more for PostgreSQL which is so fine.:)

Regards,
Chen Huajun
(2012/11/23 21:42), Michael Meskes wrote:
> On Thu, Nov 22, 2012 at 06:09:20PM +0800, Chen Huajun wrote:
>> When use a struct variable whose name length is very very long such as 12KB in .pgc source,
>> ecpg will core dump because of buffer overflow if precompile the .pgc file.
>
> How on earth did you run into this? :)
>
> I absolutely agree that this is better be fixed and cjust committed the second
> version of your patch.
>
> Thanks.
>
> Michael






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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: autovacuum stats under log_autovacuum_min_duration
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: fix ecpg core dump when there's a very long struct variable name in .pgc file