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
Ответ на
Список
Дерево обсуждения
@(#)Mordred Labs advisory 0x0003: Buffer overflow in PostgreSQL (fwd) Vince Vielhaber <vev@michvhf.com>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in PostgreSQL (fwd) Tom Lane <tgl@sss.pgh.pa.us>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in PostgreSQL (fwd) Neil Conway <neilc@samurai.com>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in PostgreSQL (fwd) Tom Lane <tgl@sss.pgh.pa.us>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in PostgreSQL (fwd) Neil Conway <neilc@samurai.com>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in PostgreSQL Bruce Momjian <pgman@candle.pha.pa.us>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in PostgreSQL Bruce Momjian <pgman@candle.pha.pa.us>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in PostgreSQL (fwd) Neil Conway <neilc@samurai.com>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in Vince Vielhaber <vev@michvhf.com>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in PostgreSQL (fwd) Tom Lane <tgl@sss.pgh.pa.us>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in PostgreSQL Bruce Momjian <pgman@candle.pha.pa.us>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in PostgreSQL (fwd) Neil Conway <neilc@samurai.com>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in "Marc G. Fournier" <scrappy@hub.org>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in PostgreSQL (fwd) "Christopher Kings-Lynne" <chriskl@familyhealth.com.au>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in Gavin Sherry <swm@linuxworld.com.au>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in Neil Conway <neilc@samurai.com>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in Robert Treat <xzilla@users.sourceforge.net>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in "Marc G. Fournier" <scrappy@hub.org>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in Vince Vielhaber <vev@michvhf.com>
Re: @(#)Mordred Labs advisory 0x0003: Buffer overflow in Bruce Momjian <pgman@candle.pha.pa.us>
Vince Vielhaber  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
Дата:
От: Zeugswetter Andreas SB SD
Дата:
FAQ