Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(hogvm): add RE2 for TypeScript VM #23558

Merged
merged 3 commits into from
Jul 9, 2024
Merged

feat(hogvm): add RE2 for TypeScript VM #23558

merged 3 commits into from
Jul 9, 2024

Conversation

mariusandra
Copy link
Collaborator

Changes

Update the TypeScript HogVM to use re2 for regexp matching.

This avoids ReDoS errors.

How did you test this code?

All tests continue to pass.

What about Python?

I looked into it and opted to keep the Python HogVM using regular Python re for now. I could install a python package (the official re2 package is out of date, pyre2 is better), but that requires everyone to run brew install re2 or equivalent to get some .h files.

Since we're not using the Python HogVM in production anywhere, I'll skip the hassle for now and keep it as a TODO to revisit if we ever want to use that for anything.

@mariusandra mariusandra merged commit 54246ab into master Jul 9, 2024
86 checks passed
@mariusandra mariusandra deleted the hogvm-re2 branch July 9, 2024 14:10
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.

2 participants