git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: c52d37c) | patch
Protect against NULL-dereference in pg_dump
Fri, 6 Jan 2017 20:27:47 +0000 (15:27 -0500)
Fri, 6 Jan 2017 20:27:47 +0000 (15:27 -0500)
commit d74ecbc8d85eb7a2aa1d5516c5c38d6ab0cbbd82
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.
src/bin/pg_dump/pg_dump.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /