Bug 28926 - Infinite loop within RE.matchNodes()
Summary: Infinite loop within RE.matchNodes()
Status: CLOSED DUPLICATE of bug 9153
Alias: None
Product: Regexp
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---
Assignee: Jakarta Notifications Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-12 14:16 UTC by Andreas Berg
Modified: 2005-01-11 13:35 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Berg 2004-05-12 14:16:30 UTC
The code

String pattern = "([0-9]{6})([0-9]{4})?(D|C|RD|RC)([A-Z])?([0-9\\,]{0,15})([A-Z]
[A-Z0-9]{3})(.{0,16})//(.{0,16})(\\n?(.{0,34}))?";
String text = "0405100510D99,99NABCKUNDENREF1\nKUNDENREF2";
RE re = new RE(pattern);
re.split(text);

causes an infinite loop within RE.matchNodes(). Tested with RegExp 1.2 and 1.3. 
Kind regards,

Andreas Berg.
Comment 1 Vadim Gritsenko 2004-05-12 14:55:34 UTC

*** This bug has been marked as a duplicate of 9153 ***