mirror of
https://github.com/boostorg/regex.git
synced 2025-07-03 23:56:34 +02:00
Compare commits
5 Commits
boost-1.79
...
boost-1.80
Author | SHA1 | Date | |
---|---|---|---|
a851f2141f | |||
e5979ae1af | |||
57aca85a8e | |||
72f81888a5 | |||
ae7819ddb1 |
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -158,7 +158,7 @@ jobs:
|
||||
run: ../../../b2 toolset=${{ matrix.toolset }} cxxstd=${{ matrix.standard }}
|
||||
working-directory: ../boost-root/libs/regex/test
|
||||
windows_gcc:
|
||||
runs-on: windows-latest
|
||||
runs-on: windows-2019
|
||||
defaults:
|
||||
run:
|
||||
shell: cmd
|
||||
|
@ -1019,6 +1019,8 @@ int basic_regex_creator<charT, traits>::calculate_backstep(re_syntax_base* state
|
||||
{
|
||||
if(rep->max != rep->min)
|
||||
return -1;
|
||||
if (static_cast<std::size_t>((std::numeric_limits<int>::max)() - result) < rep->min)
|
||||
return -1; // protection against overflow, we can't calculate a backstep in this case and the expression is probably ill-formed.
|
||||
result += static_cast<int>(rep->min);
|
||||
state = rep->alt.p;
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user