Commit Graph

361 Commits

Author SHA1 Message Date
ph10
87ccc12cb2 Tidies and minor bug fix resulting from Coverity Scan issues. 2017-04-16 16:49:11 +00:00
ph10
edc6a4e59c Improve testing coverage with updates to pcre2test and test files; also get rid
of redundant code in pcre2_match().
2017-04-16 13:03:30 +00:00
ph10
7de34bea6d Correct an incorrect cast. 2017-04-14 12:14:41 +00:00
ph10
f6826ada04 Remove duplication typo. 2017-04-14 12:08:54 +00:00
ph10
440a2c37f6 Remove redundant line of code (a typo really). 2017-04-14 11:42:02 +00:00
ph10
9509836379 Fix valgrind warnings for unset padding at the end of the pcre2_real_code
structure.
2017-04-12 13:48:11 +00:00
ph10
9d7cf25ee9 Add explicit heap limiting options to pcre2_match(), with associated features
for listing, configuring, etc.
2017-04-11 11:47:25 +00:00
ph10
bcf460622d Extend auto-anchoring to ignore "never-obeyed" groups at the start. 2017-04-07 08:46:29 +00:00
ph10
5fa0e6724f Jason Hood's pcre2grep patches (modified a bit) to add --output to pcre2grep,
and also an inbuilt callout echo.
2017-04-06 18:02:40 +00:00
ph10
d112460049 Implement PCRE2_ENDANCHORED. 2017-04-04 17:09:33 +00:00
ph10
c9b88ee577 Fix non-passing of mark values out of recursions. 2017-04-04 11:37:21 +00:00
ph10
68a7c90784 Fix capturing in conditional negative assertions ended with (*ACCEPT). 2017-04-03 18:02:07 +00:00
ph10
a0cea34820 Better error handling in pcre2test. 2017-03-26 17:51:31 +00:00
ph10
eb984481b6 Improvements to the \=memory modifier in pcre2test. 2017-03-25 17:08:20 +00:00
ph10
00523b57c8 Fix bug introduced at 10.21: use memory allocator from the pattern if no
context is supplied to pcre2_match().
2017-03-25 15:19:49 +00:00
ph10
ed59b71dee Make \=find_limits apply to DFA matching, to find the minimum depth limit. 2017-03-24 18:20:34 +00:00
ph10
175f19705e Fix issues with (*VERB)s inside recursive subroutine calls. 2017-03-23 17:54:58 +00:00
ph10
f2103f5514 Fix misbehaving DFA match for possessively repeated character class (Bugzilla
2086).
2017-03-22 15:12:06 +00:00
ph10
b3ca9c8ca0 Fix 32-bit error buffer size bug in pcre2test (Bugzilla 2079). 2017-03-21 17:46:21 +00:00
ph10
2d1ea1ae27 Fix NULL deference if pcre2_callout_enumerate() is called with a NULL pattern
when Unicode support is available (Bugzilla 2076).
2017-03-21 16:31:54 +00:00
ph10
a79f5fca18 Fix memory leak when deserializing invalid data (Bugzilla 2075). 2017-03-21 16:25:01 +00:00
ph10
5aefaf72e5 Close serialization file in pcre2test after any error. 2017-03-21 16:18:54 +00:00
ph10
19608f2228 Fix pcre2grep Windows problem for new output-colouring code when not under
mingw (Bugzilla 2067).
2017-03-21 16:09:57 +00:00
ph10
5683803f56 Fix pcre2test bug for global match with zero terminated subject. 2017-03-19 18:34:27 +00:00
zherczeg
cfbcee7852 Reworked the recursive pattern matching in the JIT compiler to follow the interpreter changes. 2017-03-19 03:35:27 +00:00
ph10
1da5c1d5aa Add "framesize" to pcre2test to display pcre2_match() frame size, using the new
PCRE2_INFO_FRAMESIZE option for pcre2_pattern_info().
2017-03-16 17:55:55 +00:00
ph10
5c5bc65ca6 Fix crash for forward reference in lookbehind with PCRE2_ANCHORED. Fixes
oss-fuzz issue 865.
2017-03-16 17:17:47 +00:00
ph10
b46cf4e403 Change "limit recursion" to "limit depth" in code and build systems because the
old name, which is retained as a synonym for the moment, is no longer 
appropriate.
2017-03-12 13:47:01 +00:00
ph10
f042eace16 Fix crash for pattern with very many captures. Fixes oss-fuzz issue 783. 2017-03-10 16:34:54 +00:00
ph10
31e9d32fe8 Fix oss-fuzz issue 781: read from bad memory when fewer capturing parens than
space in the external ovector.
2017-03-10 15:53:49 +00:00
ph10
b68e48ff4d Code for new interpreter (build system and documentation still to be done). 2017-03-09 16:23:28 +00:00
ph10
ef5fe72c11 Fix 32-bit non-UTF property test crash. 2017-02-24 18:25:32 +00:00
ph10
e2d2f36d53 Check malloc returns in pcre2test. 2017-02-23 17:05:43 +00:00
ph10
863701a6fc Final file updates for 10.23. 2017-02-14 10:40:33 +00:00
ph10
0d83d1184d Update Windows grep test script in line with the non-Windows version. 2017-02-14 10:29:00 +00:00
ph10
c8a05255d0 Fix previously broken fix for pcre2grep with -Mo matching strings that cross
line boundaries.
2017-02-10 17:39:29 +00:00
ph10
803665bfc2 Cache group minima to speed up studying of pathological patterns. Fixes
oss-fuzz #557.
2017-02-10 16:33:15 +00:00
ph10
f63c170c7c Reduce recursion limit for auto-possessify to reduce stack usage at compile
time. Fixes oss-fuzz issue 553.
2017-02-08 17:03:30 +00:00
ph10
46aa472e62 Don't use %td (use %lu instead) in pcre2test under MSVC. 2017-02-04 16:27:20 +00:00
ph10
5a4c601fca Fix \g+ bug when the number that follows is too big. 2017-01-31 17:15:30 +00:00
ph10
f79f23474a File tidies for 10.23-RC1 2017-01-16 17:40:47 +00:00
ph10
7d8046f5a2 Minor tidies to pcre2grep. 2017-01-16 15:06:57 +00:00
ph10
112122e98b Update build system for changes in the JIT modules. 2017-01-12 16:35:43 +00:00
ph10
e794d8e4d3 Ignore all JIT compile errors in pcre2grep. 2017-01-11 17:10:28 +00:00
ph10
a463d662e4 Fix pcre2test mishandling "end before start" return with POSIX interface. 2017-01-11 17:02:27 +00:00
ph10
eb5a1f7ac1 Fix hyphen after \E after POSIX class causing an error. 2017-01-11 16:40:35 +00:00
ph10
ec9f5993eb Improve class handling for \H and \V by ignoring caseless. 2017-01-03 18:17:31 +00:00
ph10
70cda2eba3 Detect overlong patterns earlier. 2017-01-03 11:35:26 +00:00
ph10
7195449563 Upgrade pcre2grep for Windows courtesy of Jason Hood. 2016-12-31 17:40:45 +00:00
ph10
0c411acee8 Minor tidy. 2016-12-31 14:17:14 +00:00