-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Regex crashes with too long input strings
- Loading branch information
Showing
111 changed files
with
48,018 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
project(boost) | ||
|
||
add_subdirectory(regex) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
project(boost-regex) | ||
|
||
add_library(boost-regex INTERFACE) | ||
|
||
target_include_directories(boost-regex INTERFACE | ||
include | ||
) | ||
target_compile_definitions(boost-regex INTERFACE BOOST_REGEX_STANDALONE) | ||
|
||
add_library(boost::regex ALIAS boost-regex) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* | ||
* Copyright (c) 1998-2002 | ||
* John Maddock | ||
* | ||
* Use, modification and distribution are subject to 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) | ||
* | ||
*/ | ||
|
||
/* | ||
* LOCATION: see http://www.boost.org/libs/regex for most recent version. | ||
* FILE cregex.cpp | ||
* VERSION see <boost/version.hpp> | ||
* DESCRIPTION: Declares POSIX API functions | ||
* + boost::RegEx high level wrapper. | ||
*/ | ||
|
||
#ifndef BOOST_RE_CREGEX_HPP | ||
#define BOOST_RE_CREGEX_HPP | ||
|
||
#ifndef BOOST_REGEX_CONFIG_HPP | ||
#include <boost/regex/config.hpp> | ||
#endif | ||
|
||
#ifdef BOOST_REGEX_CXX03 | ||
#include <boost/regex/v4/cregex.hpp> | ||
#else | ||
#include <boost/regex/v5/cregex.hpp> | ||
#endif | ||
|
||
#endif /* include guard */ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
/* | ||
* | ||
* Copyright (c) 1998-2000 | ||
* Dr John Maddock | ||
* | ||
* Use, modification and distribution are subject to 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) | ||
* | ||
*/ | ||
|
||
/* | ||
* LOCATION: see http://www.boost.org/libs/regex for documentation. | ||
* FILE regex.h | ||
* VERSION 3.12 | ||
* DESCRIPTION: Declares POSIX API functions | ||
*/ | ||
|
||
#ifndef BOOST_RE_REGEX_H | ||
#define BOOST_RE_REGEX_H | ||
|
||
#include <boost/cregex.hpp> | ||
|
||
/* | ||
* add using declarations to bring POSIX API functions into | ||
* global scope, only if this is C++ (and not C). | ||
*/ | ||
#ifdef __cplusplus | ||
|
||
using boost::regoff_t; | ||
using boost::regex_tA; | ||
using boost::regmatch_t; | ||
using boost::REG_BASIC; | ||
using boost::REG_EXTENDED; | ||
using boost::REG_ICASE; | ||
using boost::REG_NOSUB; | ||
using boost::REG_NEWLINE; | ||
using boost::REG_NOSPEC; | ||
using boost::REG_PEND; | ||
using boost::REG_DUMP; | ||
using boost::REG_NOCOLLATE; | ||
using boost::REG_ESCAPE_IN_LISTS; | ||
using boost::REG_NEWLINE_ALT; | ||
using boost::REG_PERL; | ||
using boost::REG_AWK; | ||
using boost::REG_GREP; | ||
using boost::REG_EGREP; | ||
using boost::REG_ASSERT; | ||
using boost::REG_INVARG; | ||
using boost::REG_ATOI; | ||
using boost::REG_ITOA; | ||
|
||
using boost::REG_NOTBOL; | ||
using boost::REG_NOTEOL; | ||
using boost::REG_STARTEND; | ||
|
||
using boost::reg_comp_flags; | ||
using boost::reg_exec_flags; | ||
using boost::regcompA; | ||
using boost::regerrorA; | ||
using boost::regexecA; | ||
using boost::regfreeA; | ||
|
||
#ifndef BOOST_NO_WREGEX | ||
using boost::regcompW; | ||
using boost::regerrorW; | ||
using boost::regexecW; | ||
using boost::regfreeW; | ||
using boost::regex_tW; | ||
#endif | ||
|
||
using boost::REG_NOERROR; | ||
using boost::REG_NOMATCH; | ||
using boost::REG_BADPAT; | ||
using boost::REG_ECOLLATE; | ||
using boost::REG_ECTYPE; | ||
using boost::REG_EESCAPE; | ||
using boost::REG_ESUBREG; | ||
using boost::REG_EBRACK; | ||
using boost::REG_EPAREN; | ||
using boost::REG_EBRACE; | ||
using boost::REG_BADBR; | ||
using boost::REG_ERANGE; | ||
using boost::REG_ESPACE; | ||
using boost::REG_BADRPT; | ||
using boost::REG_EEND; | ||
using boost::REG_ESIZE; | ||
using boost::REG_ERPAREN; | ||
using boost::REG_EMPTY; | ||
using boost::REG_E_MEMORY; | ||
using boost::REG_E_UNKNOWN; | ||
using boost::reg_errcode_t; | ||
|
||
#endif /* __cplusplus */ | ||
|
||
#endif /* BOOST_RE_REGEX_H */ | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* | ||
* Copyright (c) 1998-2002 | ||
* John Maddock | ||
* | ||
* Use, modification and distribution are subject to 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) | ||
* | ||
*/ | ||
|
||
/* | ||
* LOCATION: see http://www.boost.org/libs/regex for documentation. | ||
* FILE regex.cpp | ||
* VERSION see <boost/version.hpp> | ||
* DESCRIPTION: Declares boost::basic_regex<> and associated | ||
* functions and classes. This header is the main | ||
* entry point for the template regex code. | ||
*/ | ||
|
||
|
||
/* start with C compatibility API */ | ||
|
||
#ifndef BOOST_RE_REGEX_HPP | ||
#define BOOST_RE_REGEX_HPP | ||
|
||
#ifndef BOOST_REGEX_CONFIG_HPP | ||
#include <boost/regex/config.hpp> | ||
#endif | ||
|
||
#ifdef BOOST_REGEX_CXX03 | ||
#include <boost/regex/v4/regex.hpp> | ||
#else | ||
#include <boost/regex/v5/regex.hpp> | ||
#endif | ||
|
||
#endif // include | ||
|
||
|
||
|
||
|
Oops, something went wrong.