Re: BUG #4625: ECPG: Memory allocation for binary data is wrong

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Tomislav Bodor <tbodor(at)yahoo(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4625: ECPG: Memory allocation for binary data is wrong
Date: 2009-02-02 16:17:22
Message-ID: 20090202161722.GA8327@feivel.credativ.lan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)jabber(dot)org
Go VfL Borussia! Go SF 49ers! Use Debian GNU/Linux! Use PostgreSQL!

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Robert Walker 2009-02-02 18:24:28 BUG #4635: postgres.exe crash when RAISE NOTICE during debugging of PL/pgSQL function in PgAdminIII
Previous Message Michael Meskes 2009-02-02 15:39:19 Re: *****SPAM***** BUG #4623: %s pattern broken in PGTYPEStimestamp_defmt_asc