Skip to content

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

Merged
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
antoniovicente:regexp_match
Apr 21, 2020
Merged

Catch exception and return false in cases where std::regex_match throws.#10861
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
antoniovicente:regexp_match

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