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

fix: Catastrophic backtracking regex condition (#64) #65

Merged
merged 1 commit into from
Jul 29, 2021

Conversation

tregoning
Copy link
Contributor

Fix for: #64

All current tests pass with the suggested new regex + performance/crash issue is resolved.

Unfortunately I don't think it's possible to test for a regex ReDoS since obviously everything crashes when it's triggered.

Copy link
Member

@captainsafia captainsafia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This regex causes us a headache every now and then. May be time to consider a third-party package for this.

In any case, thanks for the bug report and the fix!

@captainsafia captainsafia merged commit fa8a84c into nteract:master Jul 29, 2021
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

Successfully merging this pull request may close these issues.

2 participants