[
https://issues.apache.org/jira/browse/TAPESTRY-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ulrich Stärk updated TAPESTRY-1857:
-----------------------------------
Attachment: patch.txt
I wrote a patch for the regex pattern that
a) uses non-greedy quantifiers (backtracking should be avoided and is most
likely the source of this bug)
b) takes into account most of the restrictions placed upon email addresses as
outlined in RFC 3696 (distilled from RFCs 2821 and 2822)
Limitations:
- doesn't allow for backslash-quoted chars in the local part
- doesn't allow for a double-quote quoted local part
- domain names consisting exclusively of digits are allowed (like 12345678.com
which actually is not allowed but in practice this is disregarded)
> Email validator's regexp pattern causes possibly infinite loop
> --------------------------------------------------------------
>
> Key: TAPESTRY-1857
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
> Project: Tapestry
> Issue Type: Bug
> Affects Versions: 4.1.3
> Reporter: Ulrich Stärk
> Priority: Critical
> Fix For: 4.1.4
>
> Attachments: patch.txt, Test.java
>
>
> The regex pattern used by the email validator causes a possibly infinite loop
> in java.util.regex.Pattern with some input.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]