Re: BUG #18276: Heap-buffer-overflow triggered in src/backend/utils/adt/datum.c:163

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #18276: Heap-buffer-overflow triggered in src/backend/utils/adt/datum.c:163
Дата
Msg-id 1637353.1704656849@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #18276: Heap-buffer-overflow triggered in src/backend/utils/adt/datum.c:163  (Zu-Ming Jiang <zuming.jiang@inf.ethz.ch>)
Ответы Re: BUG #18276: Heap-buffer-overflow triggered in src/backend/utils/adt/datum.c:163
Список pgsql-bugs
Zu-Ming Jiang <zuming.jiang@inf.ethz.ch> writes:
> But I am bit wondering whether it is a bug. I think PostgreSQL should 
> not directly crash because of a incorrect datatype. Maybe PostgreSQL can 
> return an error?

It's not reasonable to expect the system to figure out the behavior
of C functions (see: halting problem).  In the end this is why
creating base types is a superuser-only operation: it's possible
to crash the server with a wrong definition.  I don't see any prospect
of making that meaningfully safer.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #18273: Incorrect memory access occurs when gist__int index is building on data containing 2^31-1
Следующее
От: Zu-Ming Jiang
Дата:
Сообщение: Re: BUG #18276: Heap-buffer-overflow triggered in src/backend/utils/adt/datum.c:163