Re: SV: 7.1 devel and initdb core dumps

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jarmo Paavilainen" <netletter(at)comder(dot)com>
Cc: "PostgreSQL General" <pgsql-general(at)hub(dot)org>, "Tod McQuillin" <devin(at)spamcop(dot)net>
Subject: Re: SV: 7.1 devel and initdb core dumps
Date: 2000-10-18 16:01:21
Message-ID: 5033.971884881@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Jarmo Paavilainen" <netletter(at)comder(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2000-10-18 16:14:36 Re: too many clients?
Previous Message chris markiewicz 2000-10-18 15:20:57 too many clients?