Re: SV: 7.1 devel and initdb core dumps

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SV: 7.1 devel and initdb core dumps
Дата
Msg-id 5033.971884881@sss.pgh.pa.us
обсуждение исходный текст
Ответ на SV: 7.1 devel and initdb core dumps  ("Jarmo Paavilainen" <netletter@comder.com>)
Список 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 по дате отправления:

Предыдущее
От: "chris markiewicz"
Дата:
Сообщение: too many clients?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: too many clients?