[Libreoffice] [PATCH] Re: Easy hack regex compile infinite loop ( bug 41738 )

2011-11-10 Thread Karl Koehler
Hi, investigating further I have come to the conclusion that the attached ( and previously inlined ) patch is correct, in the sense that regular expressions of the failing type are now handled correctly. e.g. A[\[:\]] should find an 'A' followed by one of '[',':',']' and it does now (old

[Libreoffice] Easy hack regex compile infinite loop ( bug 41738 )

2011-11-05 Thread Karl Koehler
Hi, I have been loosely looking at libreoffice and last night I thought I'd take a look at an easy hack. I choose bug 41738. The problem seems to be with the regular expression compilation code; especially he handling of '[:'-character classes in combination with escapes. In gdb, I can see that