Commit Graph

529 Commits

Author SHA1 Message Date
ph10
344fa86106 Don't ignore {1}+ when it is applied to a parenthesized item. 2019-06-19 16:27:50 +00:00
ph10
c981feb45b Fix minimum length bug for patterns containing (*ACCEPT). 2019-06-18 16:07:43 +00:00
ph10
64e0f37d36 Another extension to minimum length calculation. 2019-06-17 16:26:44 +00:00
ph10
770fd48acd Improve minimum length finder in the presence of back references when there are
multiple groups with the same number.
2019-06-16 15:37:45 +00:00
ph10
8dd228d5ba Fix pcre2grep -o bug when ovector overflows; add option to adjust the limit;
raise the default limit; give error if -o requests an uncaptured parens.
2019-06-15 15:51:07 +00:00
ph10
9b8f99ec99 Make pcre2_match() return (*MARK) names from successful conditional assertions,
as Perl and the JIT do.
2019-06-13 16:49:40 +00:00
ph10
0804b59736 Minor improvement to minimum length calculation. 2019-06-13 16:00:11 +00:00
ph10
e3feb34e18 Allow (*ACCEPT) to be quantified. 2019-06-10 16:41:22 +00:00
ph10
2272c4b452 Tweak limits on "must have" code unit searches (improves some performance). 2019-05-28 16:34:28 +00:00
ph10
24de8f52da Add support for invalid UTF-8 matching to pcre2grep. 2019-05-28 14:14:22 +00:00
ph10
df13a172d5 Implement support for invalid UTF in the pcre2_match() interpreter. 2019-05-24 17:15:48 +00:00
ph10
a5fd29b912 Fix crash when \X is used without UTF in JIT. 2019-05-13 16:26:17 +00:00
zherczeg
f49e12c148 Improved the invalid utf32 support of the JIT compiler. 2019-05-10 13:15:20 +00:00
ph10
ac5f127ddb Implement a check on the number of capturing parentheses, which for some reason
has never existed. This fixes ClusterFuzz issue 14376.
2019-04-22 12:39:38 +00:00
ph10
fae3cecf44 Final file tidies for 10.33. 2019-04-16 15:34:27 +00:00
ph10
3e3c428b5a Change a number of expressions like 1<<10 to 1u<<10. 2019-04-12 14:40:27 +00:00
zherczeg
7baa23b364 Disable SSE2 JIT optimizations in x86 CPUs when SSE2 is not available. 2019-03-25 14:10:24 +00:00
ph10
673daf6692 Fix crash in pcre2_substitute() with NULL match context. 2019-03-11 17:29:08 +00:00
ph10
56473cd6c4 More file tidies for 10.33-RC1 2019-03-04 18:07:04 +00:00
ph10
29bdf92c1c Final file tidies for 10.33-RC1 2019-03-04 18:04:44 +00:00
ph10
6d6d52f3d0 Fix --enable-jit=auto for out-of-tree builds. 2019-03-01 16:19:49 +00:00
ph10
04c757f472 Try to fix CMake old policy warning issue. 2019-02-16 11:58:37 +00:00
zherczeg
5d8a73204d Compile invalid UTF check in JIT test when only pcre32 is enabled. 2019-02-14 07:33:57 +00:00
ph10
b3438faeaf Compile \p{Any} the same as . in DOTALL mode, to benefit from auto-anchoring. 2019-02-13 17:30:24 +00:00
ph10
04b65d864e Implement PCRE2_EXTRA_ALT_BSUX to support ECMAscript 6's \u{hhh..} syntax. 2019-02-12 17:50:19 +00:00
ph10
082ef91037 Fix small bug in new Unicode group name logic. 2019-02-07 17:29:50 +00:00
ph10
e5959e493e Allow non-ASCII in group names when UTF is set; revise group naming terminology
in documentation to use "capture group", as Perl does.
2019-02-06 18:11:36 +00:00
ph10
5136cbb9d0 Update POSIX wrapper to use macros in the .h file, but also have the POSIX
function names in the library.
2019-01-30 16:11:16 +00:00
ph10
be7d18b10d Fix bug in VERSION conditional test in DFA matching. 2019-01-29 14:34:59 +00:00
zherczeg
54c873764a Fix word boundary in JIT compiler. Patch by Mike Munday. 2019-01-17 11:47:59 +00:00
ph10
0f27a7553f Fix issues with BAD_ESCAPE_IS_LITERAL in character classes. 2019-01-04 16:41:32 +00:00
ph10
aa67d1cabe Cast to get rid of compiler warning. 2018-12-14 16:02:29 +00:00
ph10
a476f6342e Make RunTest check stack settablility using the -bigstack value. 2018-12-07 16:32:05 +00:00
ph10
667491b025 Redirect stderr in RunGrepTest instead of appending to testtrygrep from two
different file descriptors, because the latter doesn't always work as expected.
2018-12-06 17:13:41 +00:00
ph10
1d04bb3372 Cut out test of NUL characters in RunGrepTest for all OS except Linux, as it
doesn't work for *BSD as well as for Solaris and MacOS (which were already cut 
out).
2018-12-06 17:05:06 +00:00
ph10
72542e3c19 Fix non-recognition of anchoring when preceded by (*MARK) etc. 2018-11-27 16:00:58 +00:00
zherczeg
59a449d6b9 Improve MAP_JIT flag usage on MacOS. Patch by Rich Siegel. 2018-11-25 17:11:52 +00:00
ph10
1b9f34cfdd Add VMS support for pcre2grep callout of an external program. 2018-11-24 16:31:10 +00:00
ph10
7ff9b0382f Fix two instances of <= 0 being applied to unsigned integers. 2018-11-17 16:59:39 +00:00
ph10
b3f69214be Add --disable-pcre2grep-callout-fork configuration setting. 2018-11-17 16:45:57 +00:00
ph10
06676b259f Implement --disable-percent-zt to avoid %zu and %td even if the environment
claims to be C99 or greater.
2018-11-15 18:09:02 +00:00
ph10
14aaf5e8c6 Unconditionally use inttypes.h instead of trying for stdint.h (simplification)
and remove the now unnecessary inclusion in pcre2_internal.h.
2018-11-14 16:59:19 +00:00
ph10
648dbc9708 Update VMS-specific code in pcre2test, on the advice of a VMS user. 2018-11-09 18:10:25 +00:00
ph10
c202dd697e Add pcre2_jit_free_unused_memory() to pcre2grep, for tidiness. 2018-10-28 17:27:48 +00:00
ph10
3e3b226ebd Add "kibibytes" to the output of pcre2test -C to show the units of the heap
limit.
2018-10-22 16:56:11 +00:00
ph10
f458930309 Fix heap limit checking overflow bug in pcre2_dfa_match(). 2018-10-22 16:47:55 +00:00
ph10
894a82db17 Fix zero-repeated subroutine call at start of pattern bug, which recorded an
incorrect first code unit.
2018-10-20 09:28:02 +00:00
ph10
990a58464f Set subject field in match data to NULL after failed match. 2018-10-19 15:31:16 +00:00
ph10
5e94fcc35a Implement PCRE2_COPY_MATCHED_SUBJECT. 2018-10-17 08:33:38 +00:00
ph10
75b90b66eb Fix typos in code for alphabetic ranges in EBCDIC environments. 2018-10-15 11:01:24 +00:00