Re: E_BAD_ACCESS with palloc/pfree in base type - Mailing list pgsql-general

From Gregory Stark
Subject Re: E_BAD_ACCESS with palloc/pfree in base type
Date
Msg-id 87abs8i138.fsf@oxford.xeocode.com
Whole thread Raw
In response to E_BAD_ACCESS with palloc/pfree in base type  (Michael Glaesemann <grzm@seespotcode.net>)
Responses Re: E_BAD_ACCESS with palloc/pfree in base type  (Michael Glaesemann <grzm@seespotcode.net>)
List pgsql-general
"Michael Glaesemann" <grzm@seespotcode.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

pgsql-general by date:

Previous
From: Patryk Kordylewski
Date:
Subject: Re: ERROR: table row type and query-specified row type do not match
Next
From: "Ottó Havasvölgyi"
Date:
Subject: Query the catalog