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

From Michael Meskes
Subject Re: fix ecpg core dump when there's a very long struct variable name in .pgc file
Date
Msg-id 20121123134248.GA32440@feivel.credativ.lan
Whole thread Raw
In response to fix ecpg core dump when there's a very long struct variable name in .pgc file  (Chen Huajun <chenhj@cn.fujitsu.com>)
Responses Re: fix ecpg core dump when there's a very long struct variable name in .pgc file
List pgsql-hackers
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
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at gmail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Plugging fd leaks (was Re: Switching timeline over streaming replication)
Next
From: Michael Paquier
Date:
Subject: Re: [WIP] pg_ping utility