Skip to content

Commit 3693a5d

Browse files
committed
Regex: previous fix could go into infinite loop when a comment was followed by a "(", fix that.
1 parent 50386af commit 3693a5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/boost/regex/v4/basic_regex_parser.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,8 +1104,10 @@ bool basic_regex_parser<charT, traits>::parse_repeat(std::size_t low, std::size_
11041104
while ((m_position != m_end)
11051105
&& (this->m_traits.syntax_type(*m_position++) != regex_constants::syntax_close_mark)) {
11061106
}
1107+
contin = true;
11071108
}
1108-
contin = true;
1109+
else
1110+
contin = false;
11091111
}
11101112
}
11111113
else

0 commit comments

Comments
 (0)