Re: Cursor support buffer patch

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Cursor support buffer patch
Дата
Msg-id 23940.991839911@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Cursor support buffer patch  (Ian Lance Taylor <ian@airs.com>)
Список pgsql-patches
Ian Lance Taylor <ian@airs.com> writes:
> The code assumed that there would be a '\0' in buf after storing the
> characters in new->refname, but it did nothing to ensure that.

Good catch.

> I can't convince myself that this code does not have the possibility
> of buffer overflow.

It obviously does; the fixed-size buffer should be replaced by a
PLpgSQL_dstring, probably.  I don't much like the fixed-size
fieldnames[] buffers elsewhere in that file, either.

            regards, tom lane

В списке pgsql-patches по дате отправления:

Предыдущее
От: Ian Lance Taylor
Дата:
Сообщение: Patch for cursors with multiple parameters
Следующее
От: Jason Tishler
Дата:
Сообщение: YA readline 4.2 patch