summaryrefslogtreecommitdiff
path: root/strings/apr_fnmatch.c
Commit message (Collapse)AuthorAgeFilesLines
* Use 'apr_pstrmemdup' instead of 'apr_pstrndup' when applicable in order to ↵jailletc362015-10-241-1/+1
| | | | | | save a few cycles. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1710307 13f79535-47bb-0310-9956-ffa450edef68
* Fix t ~= [/-/t] mismatch, observed by jorton.wrowe2011-05-191-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1124997 13f79535-47bb-0310-9956-ffa450edef68
* Fix PR 51219, /foo against /foo/bar.wrowe2011-05-181-3/+7
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1124326 13f79535-47bb-0310-9956-ffa450edef68
* r1098292 appears to have failed to copy line-endingswrowe2011-05-141-478/+478
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1103115 13f79535-47bb-0310-9956-ffa450edef68
* Further expression simplification for legibility.wrowe2011-05-141-9/+16
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1103091 13f79535-47bb-0310-9956-ffa450edef68
* Fix syntax for legibility as suggested by Stefan.wrowe2011-05-141-4/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1103070 13f79535-47bb-0310-9956-ffa450edef68
* Commentwrowe2011-05-141-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1103066 13f79535-47bb-0310-9956-ffa450edef68
* Refactor a complex test into a very simple test and wrowe2011-05-141-7/+14
| | | | | | | | | | optimize the exception cases to bust the loop early. Clean up documentation a bit. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1103046 13f79535-47bb-0310-9956-ffa450edef68
* Fix another edge case, in [x-/] processing, which I can't seem wrowe2011-05-141-1/+1
| | | | | | | to compose the proper test-case to expose. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1103041 13f79535-47bb-0310-9956-ffa450edef68
* Optimize []...] pattern casewrowe2011-05-141-2/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1102995 13f79535-47bb-0310-9956-ffa450edef68
* Fix []...] pattern bug noted by jortonwrowe2011-05-141-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1102992 13f79535-47bb-0310-9956-ffa450edef68
* Correct inlining per Jeff Trawick's feedback; Forward ports: r1098902wrowe2011-05-031-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1098904 13f79535-47bb-0310-9956-ffa450edef68
* Resolve issue identified by Jeff Trawick; '*?' was handledwrowe2011-05-021-459/+460
| | | | | | | | | | correctly, while 'x?' was not. Resolves one alert, assignment within conditional expression, for pedantic compilers. Forward ports: r1098799 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1098805 13f79535-47bb-0310-9956-ffa450edef68
* Security: CVE-2011-0419wrowe2011-05-011-211/+377
| | | | | | | | | | | | | | | | | Reported by: Maksymilian Arciemowicz <cxib securityreason.com> Excessive CPU consumption was possible due to the unconstrained, recursive invocation of apr_fnmatch, as apr_fnmatch processed '*' wildcards. Introduce new apr_fnmatch implementation. This delivers optimizations in some common cases, without the underlying weakness of recursion present in older implementations. Submitted by: William Rowe Forward port: r1098289 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1098292 13f79535-47bb-0310-9956-ffa450edef68
* If *pattern == '\\', and it does since that's the case we're in,coar2006-10-081-1/+1
| | | | | | | | | | then (*pattern++ == '\0') will always fail. Need to advance the pointer *before* the comparison. Reviewed: jerenkrantz git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@454200 13f79535-47bb-0310-9956-ffa450edef68
* Fix a bug in apr_match_glob. We need to strdup the filename, otherwiserbb2004-03-061-1/+1
| | | | | | | each call to apr_dir_read will overwrite the previous name. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64937 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_match_glob and two tests to make sure that it is working. Thererbb2004-03-051-0/+50
| | | | | | | | is a problem that is documented in the code that requires an apr_filepath_basename. That will be added soon. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64936 13f79535-47bb-0310-9956-ffa450edef68
* axe these deprecated functions:trawick2003-09-031-6/+0
| | | | | | | | | apr_is_fnmatch apr_file_set_inherit apr_file_unset_inherit git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64608 13f79535-47bb-0310-9956-ffa450edef68
* Namespace protection, thanks to Craig Rodrigues <rodrigc@attbi.com>wrowe2003-02-241-32/+32
| | | | | | | | for the original patch. Use the new symbols in all internals, taking us one step closer to being ready to just chop out the old defines. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64378 13f79535-47bb-0310-9956-ffa450edef68
* Rename to apr_fnmatch_testwrowe2002-07-081-1/+7
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63589 13f79535-47bb-0310-9956-ffa450edef68
* Fix the hosed #ifdef APR_HAVE_FOO_H tests, the #if HAVE_ tests, andwrowe2001-02-251-1/+1
| | | | | | | also cleanup s/#ifdef HAVE_FOO_H/#if APR_HAVE_FOO_H/ whrere appropriate. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61303 13f79535-47bb-0310-9956-ffa450edef68
* Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbolswrowe2000-10-161-2/+2
| | | | | | | | | | for CORE_EXPORT to AP_CORE_DECLARE (namespace protecting the wrapper) and retitled API_EXPORT as AP_DECLARE and APR_EXPORT as APR_DECLARE. All _VAR_ flavors changes to _DATA to be absolutely clear. Thank you Greg, for the most obvious suggestion. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60587 13f79535-47bb-0310-9956-ffa450edef68
* Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...wrowe2000-08-061-4/+4
| | | | | | | | | | | | | see src/lib/apr/apr_compat.h for most details. Also a few minor nits to get Win32 to build. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60481 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_dougm2000-08-021-3/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
* Move apr_fnmatch.c from lib/apr/lib to lib/apr/strings. Just the next moverbb2000-07-211-0/+243
to clean out the lib/apr/lib directory. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60399 13f79535-47bb-0310-9956-ffa450edef68