Commit 8b1bf31
committed
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 f9e439b 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.1 parent 4103a2f commit 8b1bf31
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6089 | 6089 | | |
6090 | 6090 | | |
6091 | 6091 | | |
| 6092 | + | |
| 6093 | + | |
| 6094 | + | |
6092 | 6095 | | |
6093 | 6096 | | |
6094 | 6097 | | |
| |||
16537 | 16540 | | |
16538 | 16541 | | |
16539 | 16542 | | |
16540 | | - | |
| 16543 | + | |
| 16544 | + | |
| 16545 | + | |
| 16546 | + | |
| 16547 | + | |
16541 | 16548 | | |
16542 | 16549 | | |
16543 | 16550 | | |
| |||
0 commit comments