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

Consider non-standard regex engine (boost) #806

Open
lemire opened this issue Dec 20, 2024 · 6 comments
Open

Consider non-standard regex engine (boost) #806

lemire opened this issue Dec 20, 2024 · 6 comments

Comments

@lemire
Copy link
Member

lemire commented Dec 20, 2024

https://www.boost.org/doc/libs/1_87_0/libs/regex/doc/html/index.html

This is not recommended, but it is an option. Not that boost regex can be used in standalone mode, without all of boost.

@bbayles
Copy link

bbayles commented Dec 20, 2024

Speaking of nonstandard regular expression engines, re2 would prevent ReDOS exploitation.

@lemire
Copy link
Member Author

lemire commented Dec 21, 2024

@bbayles Do you know whether re2 can be conveniently bundled? We release ada as one header file and one source file with no dependencies?

@lemire
Copy link
Member Author

lemire commented Dec 21, 2024

I think re2 has non-trivial dependencies. That’s a problem…

@bbayles
Copy link

bbayles commented Dec 25, 2024

It needs Abseil as I understand, yes - somewhat akin to Boost, but less common.

@anonrig
Copy link
Member

anonrig commented Jan 3, 2025

@lemire
Copy link
Member Author

lemire commented Jan 3, 2025

@anonrig I don't think it supports the full ECMAScript standard, however. If it did (or if it does), then it would be really an alternative to consider.

Note that even with std::regex, there are games we can play.

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

No branches or pull requests

3 participants