-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<regex>: Grouping within repetition causes regex stack error #997
Comments
Boost.Regex actually can run into stack overflow and recover from it by itself. See There are actually few ways to accomplish this, and catching |
We talked about this at the weekly maintainer meeting (see #1488). We concluded that reducing the recursion limit would likely cause more problems than it "solves", so we believe that we can't make changes here until vNext. |
Describe the bug
std::regex
with satisfactory large input and certain compiler options overflows the stackCommand-line test case
Expected behavior
Successful parsing or C++ exception, but not stack overflow
STL version
Additional context
This item is also tracked on Developer Community as DevCom-885115 and by Microsoft-internal VSO-1054746 / AB#1054746.
See also #405
vNext note: Resolving this issue will require breaking binary compatibility. We won't be able to accept pull requests for this issue until the vNext branch is available. See #169 for more information.
The text was updated successfully, but these errors were encountered: