Skip to content

Catastrophic backtracking in validation regexes #3

Description

@GoogleCodeExporter
There are some email addresses that behave *very* poorly with the validation done in EmailValidationUtil. I think it might be due to the nested quantifiers in the complex regexes there. They literally take hours to finish the validation, using 100% CPU.
Is there any way to fix this, and barring that, can an option be added to skip validation?
To reproduce:
1. Try to send an email to an address like 309d4696df38ff12c023600e3bc2bd4b@fakedomain.com
2. Wait for computer to explode
(Using java 1.6.0_31)

Original issue reported on code.google.com by semico...@gmail.com on 20 Apr 2012 at 10:13

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions