apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51219] apr_fnmatch infinite loop on pattern "/*/WEB-INF/"
Date Sat, 21 May 2011 07:06:15 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51219

Maksymilian <max@cxib.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://cvsweb.netbsd.org/bs
                   |                            |dweb.cgi/src/lib/libc/gen/f
                   |                            |nmatch.c.diff?r1=text&tr1=1
                   |                            |.22&r2=text&tr2=1.24

--- Comment #2 from Maksymilian <max@cxib.net> 2011-05-21 07:06:15 UTC ---
Instead of changing the algorithm, it is better to add recursion limit and set
64 (not bigger). I see only one recursion call inside apr_fnmatch

457     while (apr_dir_read(&finfo, APR_FINFO_NAME, dir) == APR_SUCCESS) {
458     if (apr_fnmatch(pattern, finfo.name, 0) == APR_SUCCESS) { 

so better limit this call, than change the algorithm.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message