Re: beta6 pg_restore core dumps - Mailing list pgsql-hackers

From Martin Renters
Subject Re: beta6 pg_restore core dumps
Date
Msg-id 20010319104056.A7239@snowbird.datafax.com
Whole thread Raw
In response to Re: beta6 pg_restore core dumps  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Sat, Mar 17, 2001 at 12:31:20PM -0500, Tom Lane wrote:
> After looking more closely I see that pg_restore has two different
> buffer overrun conditions in this one routine.  Attached is take two
> of my patch.
> 
> This would be a lot simpler and cleaner if _PrintData() simply didn't
> append a zero byte to the buffer contents.  Philip, is it actually
> necessary for it to do that?

This patch seems to fix the problem I was seeing.

Martin


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: /contrib 'cosmetic'
Next
From: Jan Wieck
Date:
Subject: Re: Performance monitor signal handler