Fix infinite loop in parser.

Fixes: https://github.com/boostorg/regex/issues/140.
This commit is contained in:
jzmaddock
2021-06-26 13:52:23 +01:00
parent 194ab4d646
commit d312a085b1
3 changed files with 8 additions and 0 deletions

View File

@ -1098,6 +1098,9 @@ bool basic_regex_parser<charT, traits>::parse_repeat(std::size_t low, std::size_
}
else
contin = false;
break;
default:
contin = false;
}
}
else