[PATCH][BUG_FIX] Potential null pointer dereferencing.

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема [PATCH][BUG_FIX] Potential null pointer dereferencing.
Дата
Msg-id MN2PR18MB2927E2212B324756CC6452D0E3770@MN2PR18MB2927.namprd18.prod.outlook.com
обсуждение исходный текст
Ответы Re: [PATCH][BUG_FIX] Potential null pointer dereferencing.
Список pgsql-hackers
Hi,
ExecClearTuple don't check por NULL pointer arg and according
TupIsNull slot can be NULL.

Can anyone check this buf fix?

--- \dll\postgresql-12.0\a\backend\executor\nodeUnique.c    Mon Sep 30 17:06:55 2019
+++ nodeUnique.c    Tue Nov 12 09:54:34 2019
@@ -74,7 +74,8 @@
         if (TupIsNull(slot))
         {
             /* end of subplan, so we're done */
-            ExecClearTuple(resultTupleSlot);
+            if (!TupIsNull(resultTupleSlot))
+                ExecClearTuple(resultTupleSlot);
             return NULL;
         }


Вложения

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

Предыдущее
От: Kyotaro Horiguchi
Дата:
Сообщение: Re: MarkBufferDirtyHint() and LSN update
Следующее
От: Antonin Houska
Дата:
Сообщение: Re: MarkBufferDirtyHint() and LSN update