Possible NULL dereferencing null pointer (src/backend/executor/nodeIncrementalSort.c)

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема Possible NULL dereferencing null pointer (src/backend/executor/nodeIncrementalSort.c)
Дата
Msg-id CAEudQAp90GsR2CK9BJcimj9E9Jw9bgm=-Tv3Bea3Co+1XSBkPw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Possible NULL dereferencing null pointer (src/backend/executor/nodeIncrementalSort.c)  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Список pgsql-hackers
I think that TupIsNull macro is no longer appropriate, to protect
ExecCopySlot.

See at tuptable.h:
#define TupIsNull(slot) \
((slot) == NULL || TTS_EMPTY(slot))

If var node->group_pivot is NULL, ExecCopySlot will
dereference a null pointer (first arg).

Maybe, this can be related to a bug reported in the btree deduplication.

regards,
Ranier Vilela
Вложения

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Wrong example in the bloom documentation
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: [PATCH] ecpg: fix progname memory leak