pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: wurongxin@xmu.edu.cn
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16070: A double-free bug in interfaces/libpq/fe-secure-openssl.c
Date: Sun, 20 Oct 2019 23:44:25 -0400
Message-ID: <15038.1571629465@sss.pgh.pa.us> (raw)
In-Reply-To: <20191021032537.GG1542@paquier.xyz>
References: <16070-ffac944519a43c3f@postgresql.org>
	<13213.1571581031@sss.pgh.pa.us>
	<20191021032537.GG1542@paquier.xyz>

Michael Paquier <michael@paquier.xyz> writes:
> The docs of OpenSSL mention the use of both successively, where
> ENGINE_free() does the cleanup after ENGINE_by_id(), and
> ENGINE_finish() cleans up after ENGINE_init():
> https://www.openssl.org/docs/man1.1.0/man3/ENGINE_finish.html

Yeah, that reference page pretty definitely agrees with what
we're doing.

> And an actual issue is that we have no coverage for it:
> https://coverage.postgresql.org/src/interfaces/libpq/fe-secure-openssl.c.gcov.html

Oh, hmm ... I'd supposed that the code in question was exercised
in normal SSL connections, but now I see it's not so.  It looks
like you need a non-default SSL "engine" to be available??  Might
be hard to test this as a routine thing if it requires additional
software.

			regards, tom lane





view thread (4+ messages)

Message-ID: <15038.1571629465@sss.pgh.pa.us>
Permalink:  ../15038.1571629465@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15038.1571629465@sss.pgh.pa.us

 · 

reply

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, michael@paquier.xyz, wurongxin@xmu.edu.cn
  Subject: Re: BUG #16070: A double-free bug in interfaces/libpq/fe-secure-openssl.c
  In-Reply-To: <15038.1571629465@sss.pgh.pa.us>
  References: <16070-ffac944519a43c3f@postgresql.org> <13213.1571581031@sss.pgh.pa.us> <20191021032537.GG1542@paquier.xyz> <15038.1571629465@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