pgAdmin III commit: Fix segfault when connecting to a database

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: pgAdmin III commit: Fix segfault when connecting to a database
Date: 2011-05-28 12:09:23
Message-ID: 201105281209.p4SC9NjN018339@gothos.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Fix segfault when connecting to a database

The issue appears when you first connect to a database, and then disconnect
from it. If you try to connect once again to it, you get a segmentation fault
because pgAdmin will try to get the database statistics informations from a
non-existent connection.

The patch adds a check on the connection status.

Report from Steffen Kuhn.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin3.git;a=commitdiff;h=ff4db7561d41945d26dd2602236c2ca6cb6d502a

Modified Files
--------------
pgadmin/schema/pgDatabase.cpp | 96 +++++++++++++++++++++--------------------
1 files changed, 49 insertions(+), 47 deletions(-)

Browse pgadmin-hackers by date

  From Date Subject
Next Message pgAdmin Trac 2011-05-28 12:17:41 [pgAdmin III] #319: Recovering SQL Files after pgAdmin
Previous Message Guillaume Lelarge 2011-05-28 11:28:28 Seems you forgot to add a file to your repository