develooper Front page | perl.perl5.porters | Postings from December 2012

Re: [perl #116192] Small bug in include directory slash interpretation

Thread Previous | Thread Next
From:
wolfsage
Date:
December 27, 2012 20:48
Subject:
Re: [perl #116192] Small bug in include directory slash interpretation
Message ID:
CAJ0K8bjj0B-1pGH-cS_VOoqtYPPxKr0ZJxtHYEVMKSqPGHYXww@mail.gmail.com
On Thu, Dec 27, 2012 at 10:45 AM, Matthew Horsfall via RT <
perlbug-followup@perl.org> wrote:

> I've attached a patch that I believe solves this, though I'm not sure of
> its portability on windows. Someone with more experience about how Perl
> behaves in that regard would be useful.
>
> Also, I've tested it through t/run/switchM.t, though the bug is really
> in "require", so that might not be appropriate.
>
> Hope this helps regardless.
>
> -- Matthew Horsfall (alh)
>
>
> ---
> via perlbug:  queue: perl5 status: open
> https://rt.perl.org:443/rt3/Ticket/Display.html?id=116192
>

Now that I look at this, is it possible for *(tmp-1) to access bad memory?
Would "if (!dirlen || *(tmp-1) != '/') { ... } be better?

-- Matthew Horsfall (alh)

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About