• Stephen Frost's avatar
    Protect against NULL-dereference in pg_dump · d74ecbc8
    Stephen Frost authored
    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.
    d74ecbc8
pg_dump.c 505 KB