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

Switch to re2 for pattern validation #451

Merged
merged 1 commit into from
Oct 13, 2021

Conversation

adamthom-amzn
Copy link
Contributor

Description of changes:
Standard RegExp is vulnerable to ReDoS, which means SSDK users have to be
careful when crafting patterns constraints. re2 does not have this problem,
at the expense of not supporting lookahead or backreferences.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Standard RegExp is vulnerable to ReDoS, which means SSDK users have to be
careful when crafting patterns constraints. re2 does not have this problem,
at the expense of not supporting lookahead or backreferences.
@adamthom-amzn adamthom-amzn requested review from JordonPhillips, gosar and a team October 11, 2021 21:31
@adamthom-amzn adamthom-amzn merged commit 9508719 into smithy-lang:main Oct 13, 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.

3 participants