You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-dev@jakarta.apache.org by bu...@apache.org on 2001/09/12 09:38:25 UTC

[DO NOT REPLY: Bug 3561] Stack overflow with certain patterns.

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3561

*** shadow/3561	Wed Sep 12 00:28:30 2001
--- shadow/3561.tmp.11132	Wed Sep 12 00:38:25 2001
***************
*** 14,17 ****
  |          URL:                                                              |
  +============================================================================+
  |                              DESCRIPTION                                   |
! The following program demonstrates how ORO runs into an endless recursion and thus a stack overflow:--- SNIP ---import org.apache.oro.text.*;import org.apache.oro.text.regex.*;class OROTest {    public static void main(String [] args) throws MalformedPatternException {        String pat = "'([^'\\\\]+|\\\\?)+'";        PatternCompiler compiler = new Perl5Compiler();        Pattern pattern = compiler.compile(pat);        PatternMatcherInput input = new PatternMatcherInput("don't do that");        PatternMatcher matcher = new Perl5Matcher();        matcher.contains(input, pattern);    }}--- SNIP ---Best regards,	Robert Lichtenberger
--- 14,21 ----
  |          URL:                                                              |
  +============================================================================+
  |                              DESCRIPTION                                   |
! The following program demonstrates how ORO runs into an endless recursion and thus a stack overflow:--- SNIP ---import org.apache.oro.text.*;import org.apache.oro.text.regex.*;class OROTest {    public static void main(String [] args) throws MalformedPatternException {        String pat = "'([^'\\\\]+|\\\\?)+'";        PatternCompiler compiler = new Perl5Compiler();        Pattern pattern = compiler.compile(pat);        PatternMatcherInput input = new PatternMatcherInput("don't do that");        PatternMatcher matcher = new Perl5Matcher();        matcher.contains(input, pattern);    }}--- SNIP ---Best regards,	Robert Lichtenberger
! 
! ------- Additional Comments From tanis@sport1.uibk.ac.at  2001-09-12 00:38 -------
! Created an attachment (id=527)
! Also works with the pattern inside this .java - file.