X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D7049D1EE3F for ; Mon, 29 Mar 2004 15:13:54 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 29453-06 for ; Mon, 29 Mar 2004 11:14:02 -0400 (AST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.184]) by svr1.postgresql.org (Postfix) with ESMTP id 0B8AED1EE54 for ; Mon, 29 Mar 2004 11:13:52 -0400 (AST) Received: from [212.227.126.208] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1B7ySd-0002Cx-00 for pgsql-interfaces@postgresql.org; Mon, 29 Mar 2004 17:13:59 +0200 Received: from [80.142.187.25] (helo=fam-meskes.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1B7ySd-0006cA-00; Mon, 29 Mar 2004 17:13:59 +0200 Received: from feivel (feivel.fam-meskes.de [172.26.14.14]) by fam-meskes.de (Postfix) with ESMTP id 585D010EF2C; Mon, 29 Mar 2004 17:13:42 +0200 (CEST) Received: by feivel (Postfix, from userid 1000) id 406B94ACD8; Mon, 29 Mar 2004 17:13:22 +0200 (CEST) Date: Mon, 29 Mar 2004 17:13:21 +0200 From: Michael Meskes To: =?utf-8?Q?J=C3=BCrgen?= Cappel Cc: pgsql-interfaces Subject: Re: ECPG segfault Message-ID: <20040329151321.GA5929@1> Mail-Followup-To: =?utf-8?Q?J=C3=BCrgen?= Cappel , pgsql-interfaces References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i Content-Transfer-Encoding: quoted-printable X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:da5cff6069dd6897c77170232368d0ba X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/40 X-Sequence-Number: 4819 Thanks for hunting down this bug. Patch applied to HEAD and 7.4. On Fri, Mar 26, 2004 at 01:26:28PM +0100, J=C3=BCrgen Cappel wrote: > Using my example, things work well when allocating a few bytes more, > but i would suggest adding a strlen(varcharsize) instead of 1 byte > for allocation of "offset". Actually you need the 1 too. :-) Michael --=20 Michael Meskes Email: Michael at Fam-Meskes dot De ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!