google/re2
View on GitHub ↗ ★ 9,842 C++
RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library.
51 mentions on Hacker News by 41 people: 7 stories, 44 comments · first 2015-06-04 · latest 2024-09-05
20082026
-
If you take regex as user input, you should use RE2: https://github.com/google/re2 Even without this vulnerability, some regexes can be painfully slow.
comment by jakozaur · 2015-06-04 · in PCRE Heap Overflow in Regex Processing Lets Users Execute Arbitrary Code