From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ranier VF <ranier_gyn@hotmail.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: Use after free? in fe-connect.c:closePGconn
Date: Wed, 15 Jun 2016 19:05:53 -0400
Message-ID: <15516.1466031953@sss.pgh.pa.us> (raw)
In-Reply-To: <BLU183-W36C8721B5C151BC8DEFAA7E3550@phx.gbl>
References: <BLU183-W36C8721B5C151BC8DEFAA7E3550@phx.gbl>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Ranier VF <ranier_gyn@hotmail.com> writes:
> In [d:\pginstaller.auto\postgres.windows\src\interfaces\libpq\fe-connect.c,
> closePGconn(PGconn *conn):
> Does not check if conn is NULL.
All the callers do, so I don't entirely see your point.
The stack traces you show look to me like the fault is probably in
the caller, ie, calling PQfinish twice on the same "conn".
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, ranier_gyn@hotmail.com
Subject: Re: Use after free? in fe-connect.c:closePGconn
In-Reply-To: <15516.1466031953@sss.pgh.pa.us>
References: <BLU183-W36C8721B5C151BC8DEFAA7E3550@phx.gbl> <15516.1466031953@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox