Re: E_BAD_ACCESS with palloc/pfree in base type

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: "Michael Glaesemann" <grzm(at)seespotcode(dot)net>
Cc: "pgsql-general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: E_BAD_ACCESS with palloc/pfree in base type
Date: 2007-08-31 08:02:03
Message-ID: 87abs8i138.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Michael Glaesemann" <grzm(at)seespotcode(dot)net> writes:

> char * theDigits = malloc(sizeof(XTypeMaximumStringLength));
...
> char * subscriberNumber = malloc(XTypeMaximumStringLength);

One of those two is wrong, I suspect the first one. I wonder how you define
XTypeMaximumStringLength as sizeof(<integer constant>) ought to give a
compile-time error.

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Acm 2007-08-31 08:41:43 return 1 formatted result instead of multiple results
Previous Message Patryk Kordylewski 2007-08-31 07:41:17 Re: ERROR: table row type and query-specified row type do not match