https://bugs.freedesktop.org/show_bug.cgi?id=41738

--- Comment #2 from Karl Koehler <[email protected]> 2011-11-05 22:18:00 
PDT ---
This may be simplified: regex-search for

[[:\]

The following (inline) patch avoids the infinite loop, by advancing the
starting point if we fall into the [: a second time. 


--- a/regexp/source/reclass.cxx
+++ b/regexp/source/reclass.cxx
@@ -1255,6 +1255,7 @@ Regexpr::regex_compile()
         break;
       } else {
         p = p1+1;
+        p1 ++;
         last_char = (sal_Unicode)':';
         set_list_bit(last_char, b);
       }

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to