BUG #1848: Segfault with pg_dump when database name omitted - Mailing list pgsql-bugs

From Eric Boutin
Subject BUG #1848: Segfault with pg_dump when database name omitted
Date
Msg-id 20050825184159.70707F0D88@svr2.postgresql.org
Whole thread Raw
Responses Re: BUG #1848: Segfault with pg_dump when database name omitted  (Michael Fuhr <mike@fuhr.org>)
List pgsql-bugs
The following bug has been logged online:

Bug reference:      1848
Logged by:          Eric Boutin
Email address:      boutiner@gmail.com
PostgreSQL version: 8
Operating system:   Solaris 10 amd64
Description:        Segfault with pg_dump when database name omitted
Details:

Short example that tells it all :
[eric@imelda ~]$ pg_dump -U appserv -t tbl_dossiers -s
pg_dump: [archiver (db)] connection to database "Segmentation Fault (core
dumped)
[eric@imelda ~]$

It's not a major error in itself, but a segfault is never a good thing and
could potentially lead to buffer overflow/code execution

Fix : don't forget to append the database name

That's about it
Thanks for your good application

pgsql-bugs by date:

Previous
From: Matthew Manuel
Date:
Subject: auto type casting bug
Next
From: Michael Fuhr
Date:
Subject: Re: BUG #1848: Segfault with pg_dump when database name omitted