Commit Graph

571 Commits

Author SHA1 Message Date
ph10
d85702a178 Implement Perl's /n option, which is the same as PCRE2_NO_AUTO_CAPTURE. 2017-04-18 16:21:50 +00:00
zherczeg
cf4ef27d47 Improve prefix character scanning in JIT. 2017-04-18 14:37:01 +00:00
ph10
b8fd3208e2 Implement PCRE2_EXTENDED_MORE and friends. 2017-04-18 12:32:52 +00:00
zherczeg
38d1bcccf8 Refactor SSE2 accelerated first character search in JIT. 2017-04-18 05:49:39 +00:00
zherczeg
3fd917e97c SSE2 accelerated first character pair search in JIT. 2017-04-17 14:54:04 +00:00
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
7e3b8df4fd Ensure ovector[0,1] are both PCRE2_UNSET during callouts. 2017-04-14 12:39:41 +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
3305a18a2f Adjust two match frame variables to save space in 8-bit mode. 2017-04-14 12:02:40 +00:00
ph10
440a2c37f6 Remove redundant line of code (a typo really). 2017-04-14 11:42:02 +00:00
zherczeg
bfbd1b831b Support end anchored in JIT. 2017-04-13 11:52:36 +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
748a802bbd Tidy some confusing code. 2017-04-12 13:26:11 +00:00
ph10
622dc7dc78 Fix ACCEPT issue with ENDANCHORED. 2017-04-11 14:53:26 +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
0f2f75b5e4 Add -jitverify to pcre2test. 2017-04-08 15:35:27 +00:00
ph10
5fbd64ad4f Documentation tidies and code tidies for Windows. 2017-04-08 15:21:39 +00:00
zherczeg
85b6942faf Enabling valgrind disables SSE2 in JIT. 2017-04-07 11:06:56 +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
2358302feb Fix typo and remove extraneous blank lines. 2017-04-05 15:40:06 +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
zherczeg
142a469602 JIT compiler update. 2017-04-03 13:30:17 +00:00
ph10
634d1c5209 Fix buglet in recent update for showing malloc/free at match time. 2017-03-31 15:51:41 +00:00
zherczeg
1d04b42c77 Fix character type detection when 32-bit and UCP are enabled but UTF is not in JIT. 2017-03-31 05:40:37 +00:00
zherczeg
56a7e45e42 Support (*ACCEPT) inside recurse in JIT. 2017-03-30 13:25:20 +00:00
zherczeg
e7d4494a92 Improve callouts and revertframes in JIT. 2017-03-29 08:12:32 +00:00
zherczeg
4eb00841e6 Minor JIT compiler update. 2017-03-28 09:56:52 +00:00
zherczeg
2d5f3eaead Reverse the jit-stack to top-down. 2017-03-27 13:35:08 +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
zherczeg
c725eb44d4 Support full ovector data for JIT callouts. 2017-03-25 06:33:41 +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
882bec5aaf Previous patch was not quite complete. 2017-03-21 18:36:13 +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
9aba9453de Minor pcre2test code fix for framesize modifier and documentation update. 2017-03-21 12:22:58 +00:00
zherczeg
2e84e4dde8 Capture control verbs inside the conditional assertion of a conditional block. 2017-03-20 10:41:13 +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