Re: write past chunk end in ExprContext / to_char

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: write past chunk end in ExprContext / to_char
Дата
Msg-id 26014.1183076746@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: write past chunk end in ExprContext / to_char  (imad <immaad@gmail.com>)
Список pgsql-hackers
imad <immaad@gmail.com> writes:
> This is the problematic part in formatting.c, function "dch_time".
>                 int            siz = strlen(tmtcTzn(tmtc));
>
>                 if (arg == DCH_TZ)
>                     strcpy(inout, tmtcTzn(tmtc));
>                 else
>                 {
>                     char       *p = palloc(siz);
>
>                     strcpy(p, tmtcTzn(tmtc));
>                     strcpy(inout, str_tolower(p));
>                     pfree(p);
>                 }
>                 return siz;

Hmm.  That was not the buffer overrun I was looking at, but it sure
looks like another one :-(.  Thanks for spotting it!
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: SetBufferCommitInfoNeedsSave and race conditions
Следующее
От: ITAGAKI Takahiro
Дата:
Сообщение: Re: lazy vacuum sleeps with exclusive lock on table