Re: C set return function differences on 8.0?]] - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: C set return function differences on 8.0?]]
Date
Msg-id 19092.1121178682@sss.pgh.pa.us
Whole thread Raw
In response to Re: C set return function differences on 8.0?]]  (Tim Jackson <tim.jackson@ints.com>)
List pgsql-interfaces
Tim Jackson <tim.jackson@ints.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


pgsql-interfaces by date:

Previous
From: Tim Jackson
Date:
Subject: Re: C set return function differences on 8.0?
Next
From: Scott Cain
Date:
Subject: Support for DBD::PgSPI with Pg 7.4.8?