https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86164

Boris Kolpackov <boris at kolpackov dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |boris at kolpackov dot net

--- Comment #9 from Boris Kolpackov <boris at kolpackov dot net> ---
Any progress on this?

I get the segfault (due to stack overflow) with the following trivial regex:

  regex re ("#+",);
  regex_search (string (32 * 1024, '#'), re);

In comparison, MSVC's implementation crashes on much larger input (in the above
test it is still able to match 4MB string) while libc++ doesn't seem to have
any stack-related limits (I was able to match 40MB).

I see two issues here:

1. It would have been nice if implementation-related limits were reported with
an exception rather than a crash.

2. The limits seem to be really low, both practically (matching 32KB doesn't
feel unreasonable) and compared to other implementations.

Reply via email to