Fix possible dereference null pointer (PQprint)

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема Fix possible dereference null pointer (PQprint)
Дата
Msg-id CAEudQAquFQHYOfm9JLpS6LtA3_xcnRZj+sU9zbzPEF2bLmj+Rw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Fix possible dereference null pointer (PQprint)
Список pgsql-hackers
Hi.

In the function *PQprint*, the variable po->fieldName
can be NULL.
See the checks a few lines up.

for (numFieldName = 0;
po->fieldName && po->fieldName[numFieldName];
numFieldName++)

So, I think that must be checked, when used,
in the loop below.

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

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

Предыдущее
От: Ranier Vilela
Дата:
Сообщение: Fix use of possible uninitialized variable retval (src/pl/plpgsql/src/pl_handler.c)
Следующее
От: Alexander Lakhin
Дата:
Сообщение: Test 031_recovery_conflict fails when a conflict counted twice