Index: patches/rematch.patch |
=================================================================== |
--- patches/rematch.patch (revision 101167) |
+++ patches/rematch.patch (working copy) |
@@ -10,7 +10,7 @@ |
#ifdef REGEX_SMART_BACKTRACKING |
int32_t originalInputIdx = fp->fInputIdx; |
-@@ -5607,23 +5608,29 @@ |
+@@ -5607,23 +5608,31 @@ |
foldOffset = foldLength = 0; |
while (patternChars < patternEnd && success) { |
@@ -46,6 +46,8 @@ |
+ } |
} |
} |
++ } else { |
++ c_is_valid = FALSE; |
} |
- if (fp->fInputIdx <= fActiveLimit) { |
@@ -53,7 +55,7 @@ |
if (U_IS_BMP(c)) { |
success = (*patternChars == c); |
patternChars += 1; |
-@@ -6070,4 +6077,3 @@ |
+@@ -6070,4 +6079,3 @@ |
U_NAMESPACE_END |
#endif // !UCONFIG_NO_REGULAR_EXPRESSIONS |