apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe Jr." <wr...@rowe-clan.net>
Subject Re: Fwd: DO NOT REPLY [Bug 51219] New: apr_fnmatch infinite loop on pattern "/*/WEB-INF/"
Date Fri, 20 May 2011 15:37:41 GMT
On 5/20/2011 4:29 AM, Joe Orton wrote:
> 
> I've done one short run this morning with the 1.4.x tip.  In the diff vs 
> glibc, I filtered out patterns with ']', '[' and '/' within [], and also 
> patterns containing \/.  Only two patterns remained with different 
> behaviour:
> 
> 000000009199a75c apr_fnmatch("*?[.].", "/..", 4) = 0, glibc=1
> 00000000a504a704 apr_fnmatch("*?*[^aa]", "/.", 4) = 0, glibc=1
> 
> the flag used is APR_FNM_PERIOD.  APR looks correct for the first, I am 
> not sure why the second is matching.

One can argue glibc is correct for both, in that the leading slash
was only significant if APR_FNM_PATHNAME was given.  I'd have to reread
the three docs that sometimes disagree on these things.  But in any case,
I would not consider this a blocker, and glad to read you found no other
concerning patterns!

Mime
View raw message