Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1evuRV-0001tJ-5D for pgsql-bugs@arkaria.postgresql.org; Wed, 14 Mar 2018 00:38:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1evuRU-0005Iq-4V for pgsql-bugs@arkaria.postgresql.org; Wed, 14 Mar 2018 00:38:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1evuRT-0005Ia-UW for pgsql-bugs@lists.postgresql.org; Wed, 14 Mar 2018 00:38:55 +0000 Received: from mout.kundenserver.de ([217.72.192.75]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1evuRR-0002kt-II for pgsql-bugs@lists.postgresql.org; Wed, 14 Mar 2018 00:38:55 +0000 Received: from feivel.credativ.lan ([209.128.31.164]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LrbAL-1eUhvB1DeH-013QHw; Wed, 14 Mar 2018 01:38:48 +0100 Received: from localhost (localhost [127.0.0.1]) by feivel.credativ.lan (Postfix) with ESMTP id 980A93E7; Wed, 14 Mar 2018 01:38:45 +0100 (CET) Message-ID: <1520987925.2517.64.camel@postgresql.org> Subject: Re: BUG #15104: Double free in the main function in ecpg.c From: Michael Meskes To: Patrick Krecker Cc: bianpan2016@163.com, pgsql-bugs@lists.postgresql.org Date: Wed, 14 Mar 2018 01:38:45 +0100 In-Reply-To: References: <152056012010.4963.4379808667664715171@wrigleys.postgresql.org> <1520613211.2488.140.camel@postgresql.org> Organization: PostgreSQL Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.5-1 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:HlUEaN801qfcX+PVFEfwNo/qOyoVlXnmsmwOjj+2xzdpOYhcDB+ g5Lxb2E3vuuk0cLxnVNMtMAh4jyNDGMkJS5YawGgRDDsTPqXY8K/DoafgNmhsIprAS6UWjW kQ+D4l+yI1f9FxX/xpcawWLiJVnLFhPlfygTUB93+lH0IPa7upbRiVfCuYBE3/s22bddzrQ kL5iAWjBqrJao0wWP/Now== X-UI-Out-Filterresults: notjunk:1;V01:K0:7WuMAb5aXxs=:Ijvpv3n5oLIQauLkV1ImRT JhNw9nUZFXqUmM8jqvqr73SXBgC7TzgQ+4irZet2HKFUo2z767qbF3QbP21Lv4XZvgJh8VLMw 3n2eCE+9MQkss1YZC0c7Mghdi5d7DOy9/PC0HUzjRyI6rFASO0hl2zfhVqZTyA+sZpyHQ1BY9 bBmcSmDiA/qlrDQgsSku+gclXie41k8uiC7i045Bu43dElbmBTBBS5jVwO6CIigv93OhdLrkI 5XKSq+vU1hM7yONChhp31yEtbztxJNK8ODmsC/tC4hJGXsUlmeTesLVSuMN/xQfLOVHkPFAxq J5IdAD6JV8xRTVYViS14x6pOPbQr2sXivid6lKl8jOUunwblrLQ4uqXRBfwczmTZijLUE/1ie Zy6p5uNa0tp2E01FwY1Hz71TZQ848sM2OTSUSQ5Hnp/k0ybtPdo6hJiRu2XhFdXmpF/wkKsJ9 HTFbCu7xgEQZkgs3cslDxuqFM0hd+h+xXmq/CjaZVa8mdz/QvG4tw00Sfl4hOFuiyyemReJtC tQ3x0YKVAaumCknZoISX/qMPLVRlcSrIlt6HHgXc8LnjqOHwfinXJoN+THMGqVtftefh2HU3H Lqa86CFIksful9JSUTOVlt3LfCOVzPETxYfNYmjF8rYi6JDguYV6pRcxK5H9FKo86hxaOxLu6 RUFm1WlwM0bFQzDsGcjEcpfFrfMiHOHjr7icdrboQ7u5y/jZib+MoYI1JaOwaipNVnpr6I+1h Y6MCMsBpzF7xiWCpOWaNG7IdqNWigq7WxIFT+S6ZkMKPDy9PdMlTcTE+dqk= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > There is a separate problem, when test.c *is* writeable and is > followed by an - (stdout) argument. In this case there is another > double free. Attached is a fix for both. Thanks to both of you. Committed. Michael --=20 Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Meskes at (Debian|Postgresql) dot Org Jabber: michael at xmpp dot meskes dot org VfL Borussia! For=C3=A7a Bar=C3=A7a! SF 49ers! Use Debian GNU/Linux, Post= greSQL