Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in PostgreSQL (fwd)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in PostgreSQL (fwd)
Дата
Msg-id 2376.1029874501@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in  (Vince Vielhaber <vev@michvhf.com>)
Список pgsql-hackers
Vince Vielhaber <vev@michvhf.com> writes:
> Where do we check that this:
>         result = (text *) palloc(tlen);
> is even successful?

palloc elogs if it can't allocate the space; it's unlike malloc in that
respect.  I believe it also has a guard to reject requests > 1Gb, so
I think it's reasonably proof against internal arithmetic overflows.

This problem is strictly repeat's error, not palloc's.
        regards, tom lane


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

Предыдущее
От: Vince Vielhaber
Дата:
Сообщение: Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in
Следующее
От: "Zeugswetter Andreas SB SD"
Дата:
Сообщение: Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow in