[Libreoffice-bugs] [Bug 41738] EDITING Regex Find & Replace foo[^\[:alpha:\]] causes Writer to become unresponsive
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Nov 5 22:18:00 PDT 2011
https://bugs.freedesktop.org/show_bug.cgi?id=41738
--- Comment #2 from Karl Koehler <koehlerkarl at comcast.net> 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.
More information about the Libreoffice-bugs
mailing list