Re: C set return function differences on 8.0?]]

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tim Jackson <tim(dot)jackson(at)ints(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: C set return function differences on 8.0?]]
Date: 2005-07-12 14:31:22
Message-ID: 19092.1121178682@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Tim Jackson <tim(dot)jackson(at)ints(dot)com> writes:
> The full so code is 4000 lines and caused the news group to reject the mail
> , but here is the basic format with the piece that builds the record replaced
> by hardcoded values.

With all those unchecked strcat's and strcpy's going on, it seems like
an excellent bet that you're overrunning one or another buffer and
clobbering memory that doesn't belong to you. Compiling the backend
with --enable-cassert might help in localizing the problem.

regards, tom lane

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Scott Cain 2005-07-13 17:19:38 Support for DBD::PgSPI with Pg 7.4.8?
Previous Message Tim Jackson 2005-07-11 23:09:28 Re: C set return function differences on 8.0?