Skip to content

Conversation

@emmanuel-keller
Copy link
Collaborator

@emmanuel-keller emmanuel-keller commented Mar 5, 2025

Thank you for submitting this pull request. We really appreciate you spending the time to work on SurrealDB. 🚀 🎉

What is the motivation?

When using a regular expression, the string::replace function may generate excessively large strings.

What does this change do?

We enforce the limit: SURREAL_GENERATION_ALLOCATION_LIMIT

What is your testing strategy?

Github action.
A test has been added.

Is this related to any issues?

  • No related issues

Does this change need documentation?

  • No documentation needed

Have you read the Contributing Guidelines?

@emmanuel-keller emmanuel-keller marked this pull request as ready for review March 5, 2025 12:17
@emmanuel-keller emmanuel-keller requested review from a team and tobiemh as code owners March 5, 2025 12:17
@emmanuel-keller emmanuel-keller changed the title Add limit to string::replace with regex Enforce limit to string::replace with regex Mar 5, 2025
@emmanuel-keller emmanuel-keller changed the title Enforce limit to string::replace with regex Check limit to string::replace with regex Mar 5, 2025
@emmanuel-keller emmanuel-keller changed the title Check limit to string::replace with regex Check limit to string::replace with regular expressions Mar 5, 2025
@tobiemh tobiemh added this pull request to the merge queue Mar 5, 2025
Merged via the queue into main with commit 0976a94 Mar 5, 2025
37 checks passed
@tobiemh tobiemh deleted the emmanuel/limit-string-replace-regex branch March 5, 2025 12:48
emmanuel-keller added a commit that referenced this pull request Mar 10, 2025
emmanuel-keller added a commit that referenced this pull request Mar 10, 2025
emmanuel-keller added a commit that referenced this pull request Mar 10, 2025
@rushmorem rushmorem modified the milestone: v3.0.0-alpha.1 Apr 15, 2025
@rushmorem rushmorem added the pr:backported PRs backported label Apr 15, 2025
@rushmorem rushmorem added this to the v2.3.0 milestone May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:backported PRs backported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants