Running the following program under debug gives an error xstring(1902) : Assertion failed: cannot dereference string iterator because it is out of range (e.g. an end iterator)
:
#include <boost/regex.hpp>
#include <string>
int main() {
boost::regex rx("(*ACCEPT)*+\\1((*ACCEPT)*+\\K)");
std::string str = "Z";
boost::smatch what;
boost::regex_search(str, what, rx, boost::match_default|boost::match_partial);
}
Tested on Windows, compiler: Visual Studio 2019.
The above regular expression was found via fuzzing.