Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group