forked from boostorg/regex
Compare commits
4 Commits
boost-1.79
...
esp-idf-co
Author | SHA1 | Date | |
---|---|---|---|
82a28cf859 | |||
e5979ae1af | |||
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
|
||||
|
@ -3,6 +3,8 @@
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
if(NOT DEFINED IDF_TARGET)
|
||||
|
||||
# We support CMake 3.5, but prefer 3.16 policies and behavior
|
||||
cmake_minimum_required(VERSION 3.5...3.16)
|
||||
|
||||
@ -67,3 +69,20 @@ if(ICU_FOUND)
|
||||
|
||||
endif()
|
||||
|
||||
else()
|
||||
|
||||
FILE(GLOB_RECURSE headers include/*.h include/*.hpp)
|
||||
|
||||
idf_component_register(
|
||||
SRCS
|
||||
${headers}
|
||||
INCLUDE_DIRS
|
||||
include
|
||||
REQUIRES
|
||||
boost_config
|
||||
boost_throw_exception
|
||||
boost_predef
|
||||
boost_assert
|
||||
)
|
||||
|
||||
endif()
|
||||
|
@ -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