develooper Front page | perl.perl5.porters | Postings from February 2013

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

From:
Father Chrysostomos via RT
Date:
February 10, 2013 20:20
Subject:
[perl #116192] Small bug in include directory slash interpretation
Message ID:
rt-3.6.HEAD-27190-1360527649-1288.116192-15-0@perl.org
On Thu Dec 27 12:49:17 2012, alh wrote:
> 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?

Yes.  Thank you.  Applied as 6b0bdd7.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=116192



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