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

Catch exception and return false in cases where std::regex_match throws. #10861

Merged
merged 1 commit into from
Apr 21, 2020

Conversation

antoniovicente
Copy link
Contributor

Description: Catch exception and return false in cases where std::regex_match throws. std::regex can throw during match. Catch the exception to avoid a potential for crashes in the data plane. The impact of this change is low since std::regex in config are deprecated in favor of RE2.
Risk Level: low, std::regex in config are deprecated.
Testing: unit
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Antonio Vicente <avd@google.com>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks!

@mattklein123 mattklein123 merged commit b268183 into envoyproxy:master Apr 21, 2020
penguingao pushed a commit to penguingao/envoy that referenced this pull request Apr 22, 2020
…ws. (envoyproxy#10861)

Signed-off-by: Antonio Vicente <avd@google.com>
Signed-off-by: pengg <pengg@google.com>
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