Commit Graph

254 Commits

Author SHA1 Message Date
ph10
482ae8f096 Fix class bug when UCP but not UTF was set and all wide characters need to be
included.
2016-12-26 17:11:18 +00:00
ph10
2ad85a2140 Fix bug when a character > 0xffff appears in a lookbehind within a lookbehind. 2016-12-24 16:25:11 +00:00
ph10
3176355640 Fix mis-parsing of a conditional group with callout but a question mark where
the assertion should start.
2016-12-23 18:34:10 +00:00
ph10
c71c324992 More refactoring: keep track of empty branches during compiling, replacing a
post-compile scan.
2016-12-23 17:09:37 +00:00
ph10
5a970cda12 Make the recursion limit apply to DFA matching. 2016-12-23 11:04:51 +00:00
ph10
f3c36b1732 Fix name table sort buffer overflow. 2016-12-21 17:09:11 +00:00
ph10
513ffa6176 Fix incorrect internal error for very complicated back reference handling. 2016-12-20 16:47:41 +00:00
ph10
1d535a96d9 Fix \Q\E quantification bug. 2016-12-11 16:42:29 +00:00
ph10
a8b0c38cfc Fix caseless minimizing back reference bug when heap in use for recursion. 2016-12-10 14:59:24 +00:00
ph10
bea0fcdfd8 Fix OOB error in substitute with start offset longer than length. 2016-12-09 18:19:38 +00:00
ph10
ac6a8e58cb Fix NULL defer in extended substition for \p, \P, or \X. 2016-12-09 16:57:51 +00:00
ph10
50436d4d08 Fix crash in pcre2test when displaying a wide character with a locale set. 2016-12-08 18:56:24 +00:00
ph10
2c10ac4062 Fix buffer overflow in partial match test for CRLF in empty buffer. 2016-12-08 17:55:26 +00:00
ph10
3a1c44b95d Fix \Q...\E bug in (*VERB) name when PCRE2_ALT_VERBNAMES and PCRE2_AUTO_CALLOUT
were both specified.
2016-11-27 16:14:33 +00:00
ph10
b6fd463cad Quantifiers following (*VERB)s were not being diagnosed. 2016-11-25 10:37:23 +00:00
ph10
ace2993a31 Fix bad behaviour for subroutine call in lookbehind when the called subroutine
contained an option setting such as (?s) and PCRE2_ANCHORED was set.
2016-11-23 17:17:57 +00:00
ph10
ca94ec16b7 Add pcre2_code_copy_with_tables(). 2016-11-22 15:37:02 +00:00
ph10
45ab2ff989 Update test for previous pcre2test update (overlooked). 2016-11-22 12:31:03 +00:00
ph10
12220c8b72 Fix overrun bug caused by conditional with assertion using too much memory. 2016-11-18 18:59:37 +00:00
ph10
e86513c76f Fix global overflow bug for get/copy names in pcre2test. 2016-11-10 17:08:27 +00:00
ph10
70f5077974 Test update. 2016-11-04 16:40:08 +00:00
ph10
68b57e736a Fix overrun for unterminated number after \g' 2016-11-04 11:05:21 +00:00
ph10
d9df3ee14b Fix auto-anchor bug when .* is inside an assertion. 2016-11-01 15:58:28 +00:00
ph10
7bfc994cf8 Fix read beyond unterminated quantifier at end of pattern. 2016-11-01 12:12:45 +00:00
ph10
5bc0bdf46f Fix pattern overrun in utf extended mode for a # comment that hit the end. 2016-10-31 17:46:56 +00:00
ph10
0b95c1b47c Fix bad memory calculation when the first branch of a lookbehind is of zero
length.
2016-10-28 16:09:08 +00:00
ph10
f9bba1c615 Fix bad lookup in global table for wide characters in extended mode and in
*VERB names.
2016-10-27 17:42:14 +00:00
ph10
17d07985cc Fix *MARK length check in UTF mode (it was checking characters, not code
units).
2016-10-26 16:59:22 +00:00
ph10
1d5d04b5e4 Diagnose an overall recursion (?0) inside a lookbehind as an error. 2016-10-23 17:05:09 +00:00
ph10
d399997578 The "offset" modifier in pcre2test was not being ignored (as documented) for
POSIX.
2016-10-23 16:18:15 +00:00
ph10
20d0109ed3 Fix optimization bugs when pattern starts with lookahead. 2016-10-18 11:22:40 +00:00
ph10
d709d81905 Add -t to pcre2grep. 2016-10-16 16:48:14 +00:00
ph10
6703953f9f Add test for bug already fixed by the refactoring. 2016-10-13 16:08:08 +00:00
ph10
a96905b68a Implement buffer expansion in pcre2grep. 2016-10-11 16:40:09 +00:00
ph10
e96c117d56 Fix new test in testinput5 when LF is not a default newline. 2016-10-07 15:50:39 +00:00
ph10
2fe6229033 Fix callout display bug in pcre2test. 2016-10-05 16:53:34 +00:00
ph10
33f4845d6c Major refactoring of pcre2_compile.c; see ChangeLog and HACKING. 2016-10-02 16:01:01 +00:00
ph10
a5b5d3f2dc Fix bug that caused chars > 255 not to be matched by classes like [\W\pL] when
PCRE2_UCP was not set.
2016-08-03 17:22:59 +00:00
ph10
b860064c6b Update pcre2test with the /utf8_input option, for generating wide characters in
non-UTF 16-bit and 32-bit modes.
2016-08-03 09:01:02 +00:00
ph10
c8ccfdeaef Fix new tests when newline is not LF. 2016-07-06 17:39:15 +00:00
ph10
67342de8a9 Ignore "allcaptures" after DFA matching. 2016-07-06 15:02:24 +00:00
ph10
c8e722b99d Detect overflow in pcre2test pattern and subject repetition counts. 2016-07-06 08:42:50 +00:00
ph10
102cded91e Additional test for recent JIT bugfix. 2016-07-02 15:52:30 +00:00
ph10
838adf332a Support \C in lookbehinds and DFA matching in UTF-32 mode. 2016-06-20 18:14:51 +00:00
ph10
2e31095370 Fix bad interaction between -o and -M in pcre2grep. 2016-06-17 17:37:26 +00:00
ph10
61c6782bd0 Return an error code when pcre2_get_error_message() does not recognize an error
code, and add a pcre2test facility for testing this.
2016-06-17 11:30:27 +00:00
ph10
be26792758 Implement PCRE2_NO_JIT, update HTML docs as well. 2016-06-05 16:05:34 +00:00
ph10
b16e6f7e23 Update valgrind parameters in RunGrepTest and arrange for the suppressions file
to be used when JIT is supported.
2016-05-31 11:36:10 +00:00
ph10
25944059bc Add callout support to pcre2grep 2016-04-01 15:52:08 +00:00
ph10
980f8247f9 pcre2grep: fix \r\r\n problem for Windows, and give buffer size in error
message.
2016-04-01 09:15:38 +00:00