Re: C Function Problem for bytea output

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: vishal saberwal <vishalsaberwal(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: C Function Problem for bytea output
Date: 2005-12-28 20:02:07
Message-ID: 21413.1135800127@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

vishal saberwal <vishalsaberwal(at)gmail(dot)com> writes:
> I believe its something in the function but i can't spot the error.

Well, that sure looks like a NULL result; have you considered the
possibility that the fopen is failing?

BTW, that code will happily clobber memory that doesn't
belong to it if the passed FileLength is wrong.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-12-28 20:10:24 Re: Queries never returning...
Previous Message Tom Lane 2005-12-28 19:58:40 Re: [GENERAL] Running with fsync=off