diff options
author | Stephen Frost <sfrost@snowman.net> | 2017-01-06 15:27:47 -0500 |
---|---|---|
committer | Stephen Frost <sfrost@snowman.net> | 2017-01-06 15:27:47 -0500 |
commit | d74ecbc8d85eb7a2aa1d5516c5c38d6ab0cbbd82 (patch) | |
tree | 3f200689ce11516630951e9748f2f84087b0d5e6 /src/backend/parser/parse_expr.c | |
parent | c52d37c8b3674f1ca9ead297480ade0ac9c54174 (diff) | |
download | postgresql-d74ecbc8d85eb7a2aa1d5516c5c38d6ab0cbbd82.tar.gz postgresql-d74ecbc8d85eb7a2aa1d5516c5c38d6ab0cbbd82.zip |
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.
Diffstat (limited to 'src/backend/parser/parse_expr.c')
0 files changed, 0 insertions, 0 deletions