patch for memory overrun on Linux(i386)

Поиск
Список
Период
Сортировка
От Maurice Gittens
Тема patch for memory overrun on Linux(i386)
Дата
Msg-id 199803211844.TAA21150@david.gits.nl
обсуждение исходный текст
Ответы Re: [HACKERS] patch for memory overrun on Linux(i386)  (The Hermit Hacker <scrappy@hub.org>)
Re: [HACKERS] patch for memory overrun on Linux(i386)  (ocie@paracel.com)
Список pgsql-hackers
Hi,

It turns of that one of the bugs I detected with Electric Fence
is caused by an assumption that memory return by palloc and malloc
is aligned on 8 bytes boundaries (double alignment).
Adjusting this to correspond with the reality of the malloc
implementation on my pentium based linux box fixes the problem.

The following simple patch to include/utils/memutils.h
will fix the problem.

85c85
< #if ! defined(sco)
---
> #if ! defined(sco) && !defined(linux)

There is still another buffer overrun which I will try to find.
The remaining one is triggered by creating a sequence.

I hope this patch will be applied if it makes sense to
you guys.

With regards from Maurice.



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

Предыдущее
От: The Hermit Hacker
Дата:
Сообщение: Re: [HACKERS] Newest Patch...try this one...
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: expr ? trueval : falseval