Skip to content

Conversation

@Naveed8951
Copy link

Commit Message:
regex: bound RE2 compilation memory during matcher initialization

Additional Description:
Bound RE2 compilation memory up-front using explicit re2::RE2::Options derived
from existing Envoy max program size limits, preventing excessive resource usage
during regex compilation.

Risk Level:
Medium

Testing:

  • Build and compile targets including source/common/common/regex.cc
  • Manual verification by loading configs with large/complex regex patterns and
    observing bounded compilation behavior

Docs Changes:
None

Release Notes:
None

Platform Specific Features:
None

@repokitteh-read-only
Copy link

Hi @Naveed8951, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

🐱

Caused by: #42924 was opened by Naveed8951.

see: more, trace.

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.

1 participant