[Webkit-unassigned] [Bug 14873] regular expression too large

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 12 12:43:29 PDT 2007


------- Comment #5 from hartman at videolan.org  2007-08-12 12:43 PDT -------
I did some looking around myself after this and found the following:

This error translates to ERR20 of the regexp lib and is triggered by a size
check (in pcre/pcre_compile.c) against the define MAX_PATTERN_SIZE

MAX_PATTERN_SIZE itself is defined in pcre/pcre_internal.h
This define is dependant on the define LINK_SIZE in the same file.

Normally the max size is 64K for a regexp, but if you set LINK_SIZE higher (3
or 4 instead of 2), then the pcre lib can actually handle higher sizes than
that. LINK_SIZE can be defined on the compile commandline according to the
header file.

I hope to have saved someone some time and good luck :D

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list