On Wed, Aug 27, 2008 at 09:20:18PM +0000, David Lutterkort wrote:
On Wed, 2008-08-27 at 12:03 +0100, Richard W.M. Jones wrote:
> Out of interest, do you ever hit the 16 bit limit in the size of
> compiled regexps? The "bytecode" used to represent compiled GNU
> regexps has (or perhaps had) a 16 bit limit in the jump offsets, which
> I hit a few years back. Had to switch to using a flex-compiled
> pattern matcher in the end.
No, I haven't run into that. Was that with the 'old' GNU regex
implementation (before ~ 2002) or with the current one ?
Yes, looking at glibc it seems the 2^16 limit has been removed. There
is still an error for it:
regex.h: REG_ESIZE, /* Compiled pattern bigger than 2^16 bytes. */
but nothing in the code appears to generate this error.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat
http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v