You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-dev@jakarta.apache.org by Mathieu Gervais <eg...@hotmail.com> on 2002/03/13 17:06:07 UTC
Bug: regexp goes into deep recursion for simple case
Hi,
using regexp-1.2, trying to match with the pattern "^.{1,31}$", regepx will
go into recursion for a long time if trying to match on a string longer than
31 chars.
code snippet:
RE r = new RE("^.{1,31}$"); // Compile expression
r.match("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
I didn't expect this at all, so I got a little surprised when production
servers went hanging at 100% CPU because of this :) !
I noticed a couple of unanswered bug reports in bugzilla at
http://nagoya.apache.org/bugzilla/ for regepx and the the mailing lists
appears to have very low activity from the maintainers. Is this package
still maintained? Should I switch to ORO? I was perfectly happy with regepx
(thanks!), I'm now just wondering if it's being abandonned.
mathieu
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>