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

[perl #109262] Increase the fallback value of MAXPATHLEN

Thread Next
From:
Father Chrysostomos via RT
Date:
January 28, 2012 12:22
Subject:
[perl #109262] Increase the fallback value of MAXPATHLEN
Message ID:
rt-3.6.HEAD-14510-1327782135-222.109262-15-0@perl.org
On Sat Jan 28 06:22:08 2012, dom wrote:
> The attached patch addresses a problem reported as
> <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656869> where, even
> though no limit is defined in GNU/Hurd, MAXPATHLEN is limited to 1024.
> 
> Increasing this to 4096 creates parity between GNU/Hurd and
> GNU/Linux. I'd be interested in opinions about whether this is sensible
> to apply.

I’m not an expert in this area (in fact, I’m not an expert in any OS
interaction), but as an outsider, if you will, I must ask:  What happens
if MAXPATHLEN is set to a number larger than the system supports?  Would
that result in a buffer overrun, or merely an unnecessarily large
allocation?

-- 

Father Chrysostomos


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

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