Re: BUG #4625: ECPG: Memory allocation for binary data is wrong - Mailing list pgsql-bugs

From Michael Meskes
Subject Re: BUG #4625: ECPG: Memory allocation for binary data is wrong
Date
Msg-id 20090202161722.GA8327@feivel.credativ.lan
Whole thread Raw
In response to BUG #4625: ECPG: Memory allocation for binary data is wrong  ("Tomislav Bodor" <tbodor@yahoo.com>)
List pgsql-bugs
> When using binary cursor to fetch contents of a bytea column into a variable
> set to NULL, the memory allocation relies on strlen to determine the amount
> of memory to allocate. If the data contains zeros, the memory allocated is
> too little to store the data.

And one more thank you for reporting.

Fixed in CVS HEAD.

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
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go VfL Borussia! Go SF 49ers! Use Debian GNU/Linux! Use PostgreSQL!

pgsql-bugs by date:

Previous
From: Michael Meskes
Date:
Subject: Re: *****SPAM***** BUG #4623: %s pattern broken in PGTYPEStimestamp_defmt_asc
Next
From: "Robert Walker"
Date:
Subject: BUG #4635: postgres.exe crash when RAISE NOTICE during debugging of PL/pgSQL function in PgAdminIII