[Bug libstdc++/124386] [15 regression] regex crash on long string

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 6 10:06:22 GMT 2026


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
             Blocks|                            |102445
         Resolution|---                         |DUPLICATE

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is a stack overflow due to deep recursion, which means it's another dup of
Bug 86164, and fixed for GCC 16.

If you make the input a bit larger it fails the same way with GCC 14, e.g.
28000 fails for me.

*** This bug has been marked as a duplicate of bug 86164 ***


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102445
[Bug 102445] [meta-bug] std::regex issues


More information about the Gcc-bugs mailing list