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

Exception during ReDoS detection with malformed expression #15

Closed
mschwager opened this issue Jan 21, 2020 · 0 comments
Closed

Exception during ReDoS detection with malformed expression #15

mschwager opened this issue Jan 21, 2020 · 0 comments

Comments

@mschwager
Copy link
Contributor

Malformed expressions currently cause Dlint to raise an exception:

$ pipenv run python -m dlint.redos -p '(foo'
Traceback (most recent call last):
...
sre_constants.error: missing ), unterminated subpattern at position 0

Since we'll be running Dlint across many files and don't want it to crash we should handle this error gracefully. We can simply ignore malformed expressions.

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

1 participant