cre2
cre2 copied to clipboard
C language wrapper for RE2 the regular expressions library from Google
./configure: line 1873: MMUX_INIT: command not found ./configure: line 1874: syntax error near unexpected token `cre2,0,0,0' ./configure: line 1874: `MMUX_LIBTOOL_LIBRARY_VERSIONS(cre2,0,0,0)'
The inner implementation RE2::Set::Compile() will return true for success and false for failure of prog_ compilation. Other APIs return -1 to inform an error, however this API use 0. The...
Hi, we found a crash in `cre2_find_named_capturing_groups` by using fuzzing. When analyzing the crash dump, the program crashed at ```const std::map& m = TO_CONST_RE2(re)->NamedCapturingGroups();```. Here is the trigger program to...
Hi, I found a crash when fuzzing the cre2 by a synthetical harness. The sample code is listed bellow. The internal implementation of `cre2_set_compile()` returns false if `prog_` is nullptr,...
Currently, when the same name is declared multiple times, the iterator will only return one of them. This doesn't seem to be the intent of a named group iterator, so...
Description: A memory corruption issue has been detected in the cre2 library when cleaning up after regex operations. This issue was discovered using AddressSanitizer (ASan) and a fuzzing test. Steps...
**Step to reproduce** ```c #include #include #include int main() { const char *pattern = "^admin:[0-9]{4}$"; // Expected: only matches "admin:1234" int wrong_len = 7; // ❌ Intentionally too short cre2_options_t...