Re: BUG #18891: /src/include/lib/simplehash.h possible palloc0 problems

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #18891: /src/include/lib/simplehash.h possible palloc0 problems
Дата
Msg-id 537550.1744308279@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #18891: /src/include/lib/simplehash.h possible palloc0 problems  (PG Bug reporting form <noreply@postgresql.org>)
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> On line 1080 there is an initiallization of array with the usage of palloc0.
> On the server side there is no problem as the server version of palloc never
> returns NULL. However simplehash is used in some utils: pg_dump,
> pg_verifybackup, pg_rewind. It seems these utils use the frontend version of
> palloc. Therefore it is required to add a NULL check if FRONTEND macro is
> defined.

Have you read the frontend version of palloc?

            regards, tom lane



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