Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeated patterns cause exponential performance #2

Open
timds opened this issue Dec 10, 2019 · 1 comment
Open

Repeated patterns cause exponential performance #2

timds opened this issue Dec 10, 2019 · 1 comment

Comments

@timds
Copy link

timds commented Dec 10, 2019

Hi,

Repeated characters in a password seem to cause unacceptable performance for lengths not much over 20. For example:

today <- utctDay <$> getCurrentTime
score en_US today $ Data.Text.replicate 25 "a"

Other patterns like "ab" and "ab " (with a space) behave similarly.

The passwords are of course contrived but this seems like a bug that could potentially be a denial-of-service security risk.

@pjones
Copy link
Collaborator

pjones commented Dec 10, 2019

Thanks for finding this!

I'm a bit busy right now so if you could submit a patch I would greatly appreciate it. Otherwise I'll get to it as soon as I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants