Skip to content

Conversation

traeak
Copy link
Contributor

@traeak traeak commented Oct 16, 2025

This version removes checks for recursive regex limits. I plan on adding checks to tsutil/Regex

@bryancall bryancall added the pcre label Oct 20, 2025
@bryancall bryancall added this to the 10.2.0 milestone Oct 20, 2025
@bryancall bryancall self-requested a review October 20, 2025 21:59
// Constants
static const int OVECCOUNT = 30; // We support $0 - $9 x2 ints, and this needs to be 1.5x that
static const int MAX_SUBS = 32; // No more than 32 substitution variables in the subst string
static const int MATCHCOUNT = 15;
Copy link
Contributor

Choose a reason for hiding this comment

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

The match count was 10, is there a reason to increase it to 15?

{
char *str;
int ccount;
// int ccount;
Copy link
Contributor

Choose a reason for hiding this comment

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

remove

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants