jzmaddock
bc9b25b5d3
Fix potential overflow in max_state_count calculation.
...
Fixes: https://svn.boost.org/trac10/ticket/13036 .
2017-07-31 19:18:10 +01:00
jzmaddock
d97bcfb5dd
Fix integer types and signedness:
...
Fixes https://svn.boost.org/trac10/ticket/13034
2017-07-31 18:51:25 +01:00
Andrey Semashev
f89c75f7b0
Silence MSVC 14.1 warnings of narrowing conversion
...
In debug mode the compiler is not able to see that the int constant can fit in the character type without loss.
2017-03-25 20:34:56 +03:00
John Maddock
22aedd996c
Fix iterator comparisons so legacy compilers (sun and VC6) can handle them
2017-03-01 11:33:28 +00:00
jzmaddock
1acbd42eb8
de-fuzz: fix 2 more gcc warnings
2017-02-24 11:48:27 +00:00
jzmaddock
93926479e3
de-fuzz: suppress a couple of warnings introduced by de-fuzzing fixes.
2017-02-22 18:46:34 +00:00
jzmaddock
c8044ffca0
de-fuzz: more recursive calls that require proper stack unwinding to prevent memory leaks if matching throws.
2017-02-23 09:43:22 +00:00
jzmaddock
982f3bbe45
de-fuzz: need to fail when a named recursive subexpression refers to an invalid name.
2017-02-23 09:30:49 +00:00
jzmaddock
2e7e73aecf
de-fuzz: Prevent excessive left shifts
2017-02-22 12:52:53 +00:00
jzmaddock
3d2dc325de
de-fuzz: Remove debugging code.
2017-02-22 12:45:48 +00:00
jzmaddock
85cd85013d
de-fuzz: Memory leak fix: Need to unwind stack when doing recursive call on non-recursive algorithm
2017-02-22 12:43:28 +00:00
jzmaddock
b65bf1b459
de-fuzz: make sure recursion stack always has a valid start location for the recursion.
2017-02-21 19:38:36 +00:00
jzmaddock
b0a83dc8d9
de-fuzz: fix overflow in shift
2017-02-21 11:04:26 +00:00
jzmaddock
ac3838b622
de-fuzz: fix undefined behaviour in negating enum type
2017-02-21 10:53:53 +00:00
jzmaddock
f301f3a412
de-fuzz: previous fix broke some code, re-fix it.
2017-02-21 12:43:08 +00:00
jzmaddock
94cd9e582b
Simplify adding items to lists, and fix Jamfile build failure.
2017-02-20 13:44:24 +00:00
jzmaddock
ae9f38e178
de-fuzz: Failed Pearl verbs should fail better and louder.
2017-02-18 13:04:34 +00:00
jzmaddock
d70b7bcefe
de-fuzz: fix infinite recursion when analysing tail-recursive expressions.
2017-02-16 19:24:22 +00:00
jzmaddock
7f89a8f3b8
de-fuzz: add missing typename qualifiers to previous fix.
2017-02-15 19:48:56 +00:00
jzmaddock
edd94320c7
de-fuzz: prevent infinite recursion in recursive expressions (case 14).
2017-02-15 19:44:41 +00:00
jzmaddock
b05fafe1c5
de-fuzz: improve set creation so as not to allow duplicate characters.
2017-02-14 19:41:35 +00:00
jzmaddock
febd44ddd6
de-fuzz, first fix for issue 14.
...
Make zeros in character set a single character long only.
2017-02-14 18:13:32 +00:00
jzmaddock
2cb49b97da
de-fuzz: Fix case 0 again.
2017-02-14 17:38:47 +00:00
jzmaddock
8337584087
De-Fuzz: Fixes for issues 0 and 3 from #12818 :
...
Prevent left shifting by more bits than there are in type unsigned, and
Check that alternative points to a valid state before accessing it: we may not have constructed that state yet in a fail situation.
2017-02-12 19:57:35 +00:00
jzmaddock
e215c603ad
Use the same calling convention for all msvc clones.
2017-02-09 18:24:21 +00:00
jzmaddock
4bfdae4a9f
Change config so all msvc compatible compilers use the same algorithm.
...
This *might* make msvc builds binary compatible with Intel or Clang clients.
See https://svn.boost.org/trac/boost/ticket/12233 .
2017-02-08 19:20:04 +00:00
Nikita Kniazev
d92e940ade
Fixed missing noreturn
2016-09-01 19:55:40 +03:00
jzmaddock
0f128c2a89
Fix missing variable name in concept checks.
2016-08-07 18:33:59 +01:00
John Maddock
cc21bf9283
Fix Oracle C++ concept failures
2016-08-01 12:24:00 +00:00
jzmaddock
a824b7d236
Fix copying of extra match data when using ICU.
...
See: https://svn.boost.org/trac/boost/ticket/12130
2016-06-12 13:09:12 +01:00
jzmaddock
7719dedbaf
Fix buffer over-run error when parsing invalid regex.
...
See: https://svn.boost.org/trac/boost/ticket/12222 .
2016-06-09 19:00:29 +01:00
jzmaddock
9059bfb5c6
Fix case-sensitivity change behaviour.
...
See https://svn.boost.org/trac/boost/ticket/11205 .
Update docs to match.
2016-03-14 19:22:18 +00:00
jzmaddock
955d077d2b
Allow types wider than int in \x{} expressions (for char32_t etc).
...
Fixes: https://svn.boost.org/trac/boost/ticket/11988 .
2016-02-17 18:58:05 +00:00
Yucheng Low
d8af53e222
restored missing header
2015-12-31 15:48:01 -08:00
Yucheng Low
a0dfd81516
Lockfree mem_block_cache only active if std::atomic is available
2015-12-31 15:46:20 -08:00
Yucheng Low
3f14031142
Updated with platform checks
2015-12-15 14:26:03 -08:00
Yucheng Low
b9f55efe98
Made the mem_cache_block lockfree
...
This *significantly* improves parallel performance of regex.
Currently if I have a large number of threads all using regexes; even if
they are using idependent regex objects, performance is still extremely poor
due to the lock inside of the mem_block_cache.
2015-12-08 21:17:50 -08:00
jzmaddock
eb729f6557
Disable all Win32 API usage on Windows runtime for now, but see also: https://github.com/boostorg/regex/pull/22 for a possible more compete solution.
2015-11-07 09:13:35 +00:00
Gaurav
2a525e5aa6
avoid duplicate check of markid.
...
Markid is already checked to be >0.
2015-11-03 14:12:17 +05:30
jzmaddock
e824ddb35b
Remove redundant check and make it an assert.
2015-10-23 13:27:01 +01:00
jzmaddock
7cbef4a79b
Add missing include.
2015-10-22 18:03:03 +01:00
jzmaddock
e5986b8f76
Tentative VC7.1 workaround.
2015-10-22 11:29:55 +01:00
Mikael Olenfalk
6d2be646d8
universal-windows: Do not build w32_regex_traits
...
Since Vista LCID has been deprecated and locales are now using string-names,
this makes the effort to support w32_regex_traits quite large, therefore we
opt to disable w32_regex_traits right now when targeting universal-windows.
2015-10-08 10:22:44 +02:00
Mikael Olenfalk
541bcde27f
universal-windows: Disable deprecated fileiter
2015-10-08 10:05:20 +02:00
Mikael Olenfalk
c1d2d1a736
universal-windows: Use C++ locale
2015-10-08 10:05:19 +02:00
Mikael Olenfalk
ffac6a2035
universal-windows: Do not define BOOST_REGEX_HAS_OTHER_WCHAR_T
...
Just as on VC10 this causes linker errors with std::collate<unsigned short>::id.
2015-10-08 09:37:16 +02:00
Mikael Olenfalk
3b461992b4
regex: Add dependency on boost.predef
2015-10-08 09:36:26 +02:00
jzmaddock
a307fd7077
Fix msvc warning.
2015-10-06 13:17:01 +01:00
jzmaddock
f617c73e9a
Fix some GCC and clang warnings introduced by the new code
2015-10-06 12:46:09 +01:00
jzmaddock
201d3a424e
Add recursive implementation of THEN.
2015-10-05 18:27:37 +01:00