forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd74ecbc
committed
Protect against NULL-dereference in pg_dump
findTableByOid() is allowed to return NULL and we should therefore bechecking for that case. getOwnedSeqs() and dumpSequence() shouldn'tever actually see this happen, but given odd circumstances it might andcommitf9e439b 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 parentc52d37c commitd74ecbc
1 file changed
+8
-1
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5643 | 5643 |
| |
5644 | 5644 |
| |
5645 | 5645 |
| |
| 5646 | + | |
| 5647 | + | |
| 5648 | + | |
5646 | 5649 |
| |
5647 | 5650 |
| |
5648 | 5651 |
| |
| |||
15583 | 15586 |
| |
15584 | 15587 |
| |
15585 | 15588 |
| |
15586 |
| - | |
| 15589 | + | |
| 15590 | + | |
| 15591 | + | |
| 15592 | + | |
| 15593 | + | |
15587 | 15594 |
| |
15588 | 15595 |
| |
15589 | 15596 |
| |
|
0 commit comments
Comments
(0)