Re: SV: 7.1 devel and initdb core dumps - Mailing list pgsql-general

From Tom Lane
Subject Re: SV: 7.1 devel and initdb core dumps
Date
Msg-id 5033.971884881@sss.pgh.pa.us
Whole thread Raw
In response to SV: 7.1 devel and initdb core dumps  ("Jarmo Paavilainen" <netletter@comder.com>)
List pgsql-general
"Jarmo Paavilainen" <netletter@comder.com> writes:
> Well thats the point. Why do I need to allocate one extra space for the
> string (the first one allready allocate space for the NULL). While the
> second example allocates one char too much.

The given fragment of code clearly isn't overwriting anything it
shouldn't.  I think that enlarging the allocated space is masking a bug
somewhere else.

            regards, tom lane

pgsql-general by date:

Previous
From: "chris markiewicz"
Date:
Subject: too many clients?
Next
From: Peter Eisentraut
Date:
Subject: Re: too many clients?