Author: stefan2
Date: Sun Sep  3 15:14:14 2017
New Revision: 1807155

URL: http://svn.apache.org/viewvc?rev=1807155&view=rev
Log:
* subversion/libsvn_subr/utf8proc.c
  (svn_utf__fuzzy_glob_match): Never let invalid UTF data be a match.

Suggested by: brane

Modified:
    subversion/trunk/subversion/libsvn_subr/utf8proc.c

Modified: subversion/trunk/subversion/libsvn_subr/utf8proc.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/utf8proc.c?rev=1807155&r1=1807154&r2=1807155&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/utf8proc.c (original)
+++ subversion/trunk/subversion/libsvn_subr/utf8proc.c Sun Sep  3 15:14:14 2017
@@ -251,14 +251,12 @@ svn_utf__fuzzy_glob_match(const char *st
 
   /* Try to normalize case and accents in STR.
    *
-   * If that should fail for some reason, continue with the original STR.
-   * There is still a fair chance that it matches "*.ext" pattern despite
-   * being "broken" UTF8. */
+   * If that should fail for some reason, consider STR a mismatch. */
   err = svn_utf__xfrm(&normalized, str, strlen(str), TRUE, TRUE, buf);
   if (err)
     {
       svn_error_clear(err);
-      normalized = str;
+      return FALSE;
     }
 
   /* Now see whether it matches any/all of the patterns. */


Reply via email to