From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Michael Paquier <michael.paquier@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Subject: Re: CVE-2016-1238 fix breaks (at least) pg_rewind tests
Date: Fri, 7 Oct 2016 21:56:27 +0300
Message-ID: <6b7ee4c4-cdec-0464-b233-054582fcd6f5@iki.fi> (raw)
In-Reply-To: <CAB7nPqQKpmZhwkyOjOBR2LhRPYO8+vgjZOS5scNWj25D6xZaTw@mail.gmail.com>
References: <20160908210440.vs22nia2nportdxr@alap3.anarazel.de>
<20160908211306.GA61403@alvherre.pgsql>
<20160908214919.2wv23lup2aouflcl@alap3.anarazel.de>
<CAB7nPqQKpmZhwkyOjOBR2LhRPYO8+vgjZOS5scNWj25D6xZaTw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 09/12/2016 11:08 AM, Michael Paquier wrote:
> On Fri, Sep 9, 2016 at 6:49 AM, Andres Freund <andres@anarazel.de> wrote:
>> On 2016-09-08 18:13:06 -0300, Alvaro Herrera wrote:
>>>> I can't vouch for the windows stuff, and
>>>> the invocations indeed look vulnerable. I'm not sure if the fix actually
>>>> matters on windows, given . is the default for pretty much everything
>>>> there.
>>>
>>> Well, maybe it doesn't matter now but as I understand the fix is going
>>> to enter the next stable upstream perl, so it'll fail eventually. It'd
>>> be saner to just fix the thing completely so that we can forget about
>>> it.
>>
>> Yea, it'd need input from somebody on windows. Michael? What happens if
>> you put a line remove . from INC (like upthread) in the msvc stuff?
>
> I haven't tested that directly because I am not sure how to enforce
> INC when running the prove command through system(), and there is no
> point to use pop on @INC directly in vcregress.pl as that would just
> be ignored in the system() call. But to be short: this will blow up as
> @INC is part of the default per perl -V if one uses active perl. So it
> looks fair to me to append the local source directory as well to what
> is included. You can actually do that by just adding $dir to
> $ENV{PERL5LIB} in vcregress.pl and that would be fine.
I committed a fix for the unix Makefile, per Andres' original
suggestion, because this started to bother me. I tried reproducing this
on Windows by hacking Prove.pm to remove '.' from @INC, but I wasn't
able to make that to fail. So I didn't do anything about MSVC for now.
Let's fix vcregress.pl, when someone reports an actual problem on Windows.
- Heikki
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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-hackers@postgresql.org
Cc: hlinnaka@iki.fi, michael.paquier@gmail.com, andres@anarazel.de, alvherre@2ndquadrant.com
Subject: Re: CVE-2016-1238 fix breaks (at least) pg_rewind tests
In-Reply-To: <6b7ee4c4-cdec-0464-b233-054582fcd6f5@iki.fi>
References: <20160908210440.vs22nia2nportdxr@alap3.anarazel.de> <20160908211306.GA61403@alvherre.pgsql> <20160908214919.2wv23lup2aouflcl@alap3.anarazel.de> <CAB7nPqQKpmZhwkyOjOBR2LhRPYO8+vgjZOS5scNWj25D6xZaTw@mail.gmail.com> <6b7ee4c4-cdec-0464-b233-054582fcd6f5@iki.fi>
* 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