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

Поиск
Список
Период
Сортировка
От Chen Huajun
Тема fix ecpg core dump when there's a very long struct variable name in .pgc file
Дата
Msg-id 50ADF9D0.6020405@cn.fujitsu.com
обсуждение исходный текст
Ответы Re: fix ecpg core dump when there's a very long struct variable name in .pgc file  (Chen Huajun <chenhj@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>)
Список pgsql-hackers
hi

I found a small bug in ecpg command and try to fix it.
Please check if it is correct.

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.

$ ecpg testLongStructName.pgc
Segmentation fault (core dumped)


Normally no body will write a variable with so long name,
but whether it's better to fix it.


Best Regards,
Chen Huajun

Вложения

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

Предыдущее
От: Boszormenyi Zoltan
Дата:
Сообщение: Re: [PATCH] Make pg_basebackup configure and start standby [Review]
Следующее
От: Sebastien FLAESCH
Дата:
Сообщение: Re: Database object names and libpq in UTF-8 locale on Windows