Skip to content

Limit regex remap substitutions#13139

Open
bneradt wants to merge 1 commit intoapache:masterfrom
bneradt:regex-remap-substitution-limit
Open

Limit regex remap substitutions#13139
bneradt wants to merge 1 commit intoapache:masterfrom
bneradt:regex-remap-substitution-limit

Conversation

@bneradt
Copy link
Copy Markdown
Contributor

@bneradt bneradt commented May 6, 2026

Regex remap targets could repeat valid substitution markers enough times
to exceed the fixed substitution arrays, even when every marker referred
to an allowed capture group.

This rejects targets with more substitution markers than the parser can
store and covers the boundary with remap parser unit tests.

Regex remap targets could repeat valid substitution markers enough times
to exceed the fixed substitution arrays, even when every marker referred
to an allowed capture group.

This rejects targets with more substitution markers than the parser can
store and covers the boundary with remap parser unit tests.
@bneradt bneradt added this to the 11.0.0 milestone May 6, 2026
@bneradt bneradt self-assigned this May 6, 2026
@ezelkow1
Copy link
Copy Markdown
Member

ezelkow1 commented May 7, 2026

[approve ci]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants