pgsql: pg_dump: Fix crash with invalid pg_cast row

Started by Peter Eisentrautover 14 years ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

pg_dump: Fix crash with invalid pg_cast row

An invalid combination of pg_cast.castfunc and pg_cast.castmethod
would result in a segmentation fault. Now it prints a warning.

found by Coverity

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/359dea2859c63e73c8f3f4d769e5cf1eda2a428d

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 23 +++++++++++++----------
1 files changed, 13 insertions(+), 10 deletions(-)