[COMMITTERS] pgsql: Protect against NULL-dereference in pg_dump

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема [COMMITTERS] pgsql: Protect against NULL-dereference in pg_dump
Дата
Msg-id E1cPb7q-0006n8-3y@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Protect against NULL-dereference in pg_dump

findTableByOid() is allowed to return NULL and we should therefore be
checking for that case.  getOwnedSeqs() and dumpSequence() shouldn't
ever actually see this happen, but given odd circumstances it might and
commit f9e439b1 probably shouldn't have removed that check.

Pointed out by Coverity.  Initial patch from Michael Paquier.

Back-patch to 9.6, where that commit had removed the check.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d74ecbc8d85eb7a2aa1d5516c5c38d6ab0cbbd82

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: [COMMITTERS] pgsql: Invalidate cached plans on FDW option changes.
Следующее
От: Tom Lane
Дата:
Сообщение: [COMMITTERS] pgsql: Merge two copies of tuple-building code in pltcl.c.