Skip to content

Protect against combinatorial explosion - #142

Open
dag-erling wants to merge 1 commit into
laurikari:masterfrom
dag-erling:des/more-limits
Open

Protect against combinatorial explosion#142
dag-erling wants to merge 1 commit into
laurikari:masterfrom
dag-erling:des/more-limits

Conversation

@dag-erling

Copy link
Copy Markdown
Collaborator

Add limits on the number of positions (TRE_MAX_POS) and transitions (TRE_MAX_TRANS) which result from compiling a regular expression. These are set arbitrarily at 1<<20 and 1<<24 respectively, motivated largely by the impracticality of testing anything higher.

Add limits on the number of positions (TRE_MAX_POS) and transitions
(TRE_MAX_TRANS) which result from compiling a regular expression.
These are set arbitrarily at 1<<20 and 1<<24 respectively, motivated
largely by the impracticality of testing anything higher.
@dag-erling
dag-erling requested a review from laurikari May 29, 2026 09:15
@dag-erling dag-erling self-assigned this May 29, 2026
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.

1 participant