8.33 bump
This commit is contained in:
parent
eade8eed3a
commit
088e05d8fb
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,3 +14,4 @@ pcre-8.10.tar.bz2
|
||||
/pcre-8.32-RC1.tar.bz2
|
||||
/pcre-8.32.tar.bz2
|
||||
/pcre-8.33-RC1.tar.bz2
|
||||
/pcre-8.33.tar.bz2
|
||||
|
@ -1,147 +0,0 @@
|
||||
From 038a52f90a30d93c5688a882620bfd392f386076 Mon Sep 17 00:00:00 2001
|
||||
From: ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>
|
||||
Date: Fri, 10 May 2013 11:40:06 +0000
|
||||
Subject: [PATCH] Fix pcregrep so that it can find empty lines.
|
||||
|
||||
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1324 2f5784b3-3f2a-0410-8824-cb99058d5e15
|
||||
|
||||
Petr Pisar: Ported to 8.33-RC1.
|
||||
|
||||
diff --git a/RunGrepTest b/RunGrepTest
|
||||
index 94fd808..daaf8af 100755
|
||||
--- a/RunGrepTest
|
||||
+++ b/RunGrepTest
|
||||
@@ -486,6 +486,22 @@ echo "---------------------------- Test 101 ------------------------------" >>te
|
||||
(cd $srcdir; $valgrind $pcregrep -o3 -Ho2 -o12 --only-matching=1 -o3 --colour=always --om-separator='|' '(\w+) binary (\w+)(\.)?' ./testdata/grepinput) >>testtry
|
||||
echo "RC=$?" >>testtry
|
||||
|
||||
+echo "---------------------------- Test 102 -----------------------------" >>testtry
|
||||
+(cd $srcdir; $valgrind $pcregrep -n "^$" ./testdata/grepinput3) >>testtry 2>&1
|
||||
+echo "RC=$?" >>testtry
|
||||
+
|
||||
+echo "---------------------------- Test 103 -----------------------------" >>testtry
|
||||
+(cd $srcdir; $valgrind $pcregrep --only-matching "^$" ./testdata/grepinput3) >>testtry 2>&1
|
||||
+echo "RC=$?" >>testtry
|
||||
+
|
||||
+echo "---------------------------- Test 104 -----------------------------" >>testtry
|
||||
+(cd $srcdir; $valgrind $pcregrep -n --only-matching "^$" ./testdata/grepinput3) >>testtry 2>&1
|
||||
+echo "RC=$?" >>testtry
|
||||
+
|
||||
+echo "---------------------------- Test 105 -----------------------------" >>testtry
|
||||
+(cd $srcdir; $valgrind $pcregrep --colour=always "ipsum|" ./testdata/grepinput3) >>testtry 2>&1
|
||||
+echo "RC=$?" >>testtry
|
||||
+
|
||||
|
||||
# Now compare the results.
|
||||
|
||||
diff --git a/pcregrep.c b/pcregrep.c
|
||||
index 2e0dc03..1d20733 100644
|
||||
--- a/pcregrep.c
|
||||
+++ b/pcregrep.c
|
||||
@@ -1378,6 +1378,7 @@ to find all possible matches.
|
||||
Arguments:
|
||||
matchptr the start of the subject
|
||||
length the length of the subject to match
|
||||
+ options options for pcre_exec
|
||||
startoffset where to start matching
|
||||
offsets the offets vector to fill in
|
||||
mrc address of where to put the result of pcre_exec()
|
||||
@@ -1388,8 +1389,8 @@ Returns: TRUE if there was a match
|
||||
*/
|
||||
|
||||
static BOOL
|
||||
-match_patterns(char *matchptr, size_t length, int startoffset, int *offsets,
|
||||
- int *mrc)
|
||||
+match_patterns(char *matchptr, size_t length, unsigned int options,
|
||||
+ int startoffset, int *offsets, int *mrc)
|
||||
{
|
||||
int i;
|
||||
size_t slen = length;
|
||||
@@ -1404,7 +1405,7 @@ if (slen > 200)
|
||||
for (i = 1; p != NULL; p = p->next, i++)
|
||||
{
|
||||
*mrc = pcre_exec(p->compiled, p->hint, matchptr, (int)length,
|
||||
- startoffset, PCRE_NOTEMPTY, offsets, OFFSET_SIZE);
|
||||
+ startoffset, options, offsets, OFFSET_SIZE);
|
||||
if (*mrc >= 0) return TRUE;
|
||||
if (*mrc == PCRE_ERROR_NOMATCH) continue;
|
||||
fprintf(stderr, "pcregrep: pcre_exec() gave error %d while matching ", *mrc);
|
||||
@@ -1539,6 +1540,7 @@ while (ptr < endptr)
|
||||
int endlinelength;
|
||||
int mrc = 0;
|
||||
int startoffset = 0;
|
||||
+ unsigned int options = 0;
|
||||
BOOL match;
|
||||
char *matchptr = ptr;
|
||||
char *t = ptr;
|
||||
@@ -1628,9 +1630,12 @@ while (ptr < endptr)
|
||||
|
||||
/* Run through all the patterns until one matches or there is an error other
|
||||
than NOMATCH. This code is in a subroutine so that it can be re-used for
|
||||
- finding subsequent matches when colouring matched lines. */
|
||||
+ finding subsequent matches when colouring matched lines. After finding one
|
||||
+ match, set PCRE_NOTEMPTY to disable any further matches of null strings in
|
||||
+ this line. */
|
||||
|
||||
- match = match_patterns(matchptr, length, startoffset, offsets, &mrc);
|
||||
+ match = match_patterns(matchptr, length, options, startoffset, offsets, &mrc);
|
||||
+ options = PCRE_NOTEMPTY;
|
||||
|
||||
/* If it's a match or a not-match (as required), do what's wanted. */
|
||||
|
||||
@@ -1871,7 +1876,8 @@ while (ptr < endptr)
|
||||
{
|
||||
startoffset = offsets[1];
|
||||
if (startoffset >= (int)linelength + endlinelength ||
|
||||
- !match_patterns(matchptr, length, startoffset, offsets, &mrc))
|
||||
+ !match_patterns(matchptr, length, options, startoffset, offsets,
|
||||
+ &mrc))
|
||||
break;
|
||||
FWRITE(matchptr + startoffset, 1, offsets[0] - startoffset, stdout);
|
||||
fprintf(stdout, "%c[%sm", 0x1b, colour_string);
|
||||
diff --git a/testdata/grepoutput b/testdata/grepoutput
|
||||
index 733b9d6..cf04091 100644
|
||||
--- a/testdata/grepoutput
|
||||
+++ b/testdata/grepoutput
|
||||
@@ -705,3 +705,38 @@ RC=0
|
||||
./testdata/grepinput:[1;31mzero[00m|[1;31ma[00m
|
||||
./testdata/grepinput:[1;31m.[00m|[1;31mzero[00m|[1;31mthe[00m|[1;31m.[00m
|
||||
RC=0
|
||||
+---------------------------- Test 102 -----------------------------
|
||||
+2:
|
||||
+5:
|
||||
+7:
|
||||
+9:
|
||||
+12:
|
||||
+14:
|
||||
+RC=0
|
||||
+---------------------------- Test 103 -----------------------------
|
||||
+RC=0
|
||||
+---------------------------- Test 104 -----------------------------
|
||||
+2:
|
||||
+5:
|
||||
+7:
|
||||
+9:
|
||||
+12:
|
||||
+14:
|
||||
+RC=0
|
||||
+---------------------------- Test 105 -----------------------------
|
||||
+[1;31m[00mtriple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt
|
||||
+[1;31m[00m
|
||||
+[1;31m[00mtriple: t2_txt s1_tag s_txt p_tag p_txt o_tag
|
||||
+[1;31m[00mLorem [1;31mipsum[00m dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
||||
+[1;31m[00m
|
||||
+[1;31m[00mtriple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt
|
||||
+[1;31m[00m
|
||||
+[1;31m[00mtriple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt
|
||||
+[1;31m[00m
|
||||
+[1;31m[00mtriple: t5_txt s1_tag s_txt p_tag p_txt o_tag
|
||||
+[1;31m[00mo_txt
|
||||
+[1;31m[00m
|
||||
+[1;31m[00mtriple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt
|
||||
+[1;31m[00m
|
||||
+[1;31m[00mtriple: t7_txt s1_tag s_txt p_tag p_txt o_tag o_txt
|
||||
+RC=0
|
||||
--
|
||||
1.8.1.4
|
||||
|
@ -1,35 +0,0 @@
|
||||
From a1439f72862fadeb63133e4474e4fba36bc134b2 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||
Date: Thu, 2 May 2013 17:11:58 +0200
|
||||
Subject: [PATCH] Fix retrieving PCRE_INFO_MATCHLIMIT and
|
||||
PCRE_INFO_RECURSIONLIMIT
|
||||
|
||||
Tests exhibiting pcre_fullinfo() failed on 64-bit PowerPC because
|
||||
there was mismatch on destination variable size in
|
||||
PCRE_INFO_MATCHLIMIT and PCRE_INFO_RECURSIONLIMIT cases.
|
||||
---
|
||||
pcre_fullinfo.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/pcre_fullinfo.c b/pcre_fullinfo.c
|
||||
index 36dfb0e..c4eb5c0 100644
|
||||
--- a/pcre_fullinfo.c
|
||||
+++ b/pcre_fullinfo.c
|
||||
@@ -224,12 +224,12 @@ switch (what)
|
||||
|
||||
case PCRE_INFO_MATCHLIMIT:
|
||||
if ((re->flags & PCRE_MLSET) == 0) return PCRE_ERROR_UNSET;
|
||||
- *((unsigned long int *)where) = re->limit_match;
|
||||
+ *((pcre_uint32 *)where) = re->limit_match;
|
||||
break;
|
||||
|
||||
case PCRE_INFO_RECURSIONLIMIT:
|
||||
if ((re->flags & PCRE_RLSET) == 0) return PCRE_ERROR_UNSET;
|
||||
- *((unsigned long int *)where) = re->limit_recursion;
|
||||
+ *((pcre_uint32 *)where) = re->limit_recursion;
|
||||
break;
|
||||
|
||||
default: return PCRE_ERROR_BADOPTION;
|
||||
--
|
||||
1.8.1.4
|
||||
|
@ -1,267 +0,0 @@
|
||||
From f4176cfb682170c5e9246949df653c82200d7259 Mon Sep 17 00:00:00 2001
|
||||
From: ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>
|
||||
Date: Wed, 15 May 2013 16:53:18 +0000
|
||||
Subject: [PATCH] Fix segfault when pcre_dfa_exec() is called with an output
|
||||
vector of length less than 2.
|
||||
|
||||
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1334 2f5784b3-3f2a-0410-8824-cb99058d5e15
|
||||
|
||||
Petr Pisar: Port to 8.33-RC1.
|
||||
<https://bugzilla.redhat.com/show_bug.cgi?id=963284>
|
||||
|
||||
diff --git a/pcre_dfa_exec.c b/pcre_dfa_exec.c
|
||||
index 8211760..02bd3f0 100644
|
||||
--- a/pcre_dfa_exec.c
|
||||
+++ b/pcre_dfa_exec.c
|
||||
@@ -636,7 +636,7 @@ for (;;)
|
||||
const pcre_uchar *code;
|
||||
int state_offset = current_state->offset;
|
||||
int codevalue, rrc;
|
||||
- unsigned int count;
|
||||
+ int count;
|
||||
|
||||
#ifdef PCRE_DEBUG
|
||||
printf ("%.*sProcessing state %d c=", rlevel*2-2, SP, state_offset);
|
||||
@@ -1255,7 +1255,7 @@ for (;;)
|
||||
(d != OP_ANY || !IS_NEWLINE(ptr)) &&
|
||||
((ctypes[c] & toptable1[d]) ^ toptable2[d]) != 0))
|
||||
{
|
||||
- if (++count >= GET2(code, 1))
|
||||
+ if (++count >= (int)GET2(code, 1))
|
||||
{ ADD_NEW(state_offset + 1 + IMM2_SIZE + 1, 0); }
|
||||
else
|
||||
{ ADD_NEW(state_offset, count); }
|
||||
@@ -1289,7 +1289,7 @@ for (;;)
|
||||
active_count--; /* Remove non-match possibility */
|
||||
next_active_state--;
|
||||
}
|
||||
- if (++count >= GET2(code, 1))
|
||||
+ if (++count >= (int)GET2(code, 1))
|
||||
{ ADD_NEW(state_offset + 2 + IMM2_SIZE, 0); }
|
||||
else
|
||||
{ ADD_NEW(state_offset, count); }
|
||||
@@ -1903,7 +1903,7 @@ for (;;)
|
||||
active_count--; /* Remove non-match possibility */
|
||||
next_active_state--;
|
||||
}
|
||||
- if (++count >= GET2(code, 1))
|
||||
+ if (++count >= (int)GET2(code, 1))
|
||||
{ ADD_NEW(state_offset + 1 + IMM2_SIZE + 3, 0); }
|
||||
else
|
||||
{ ADD_NEW(state_offset, count); }
|
||||
@@ -1942,7 +1942,7 @@ for (;;)
|
||||
}
|
||||
if (nptr >= end_subject && (md->moptions & PCRE_PARTIAL_HARD) != 0)
|
||||
reset_could_continue = TRUE;
|
||||
- if (++count >= GET2(code, 1))
|
||||
+ if (++count >= (int)GET2(code, 1))
|
||||
{ ADD_NEW_DATA(-(state_offset + 2 + IMM2_SIZE), 0, ncount); }
|
||||
else
|
||||
{ ADD_NEW_DATA(-state_offset, count, ncount); }
|
||||
@@ -1984,7 +1984,7 @@ for (;;)
|
||||
active_count--; /* Remove non-match possibility */
|
||||
next_active_state--;
|
||||
}
|
||||
- if (++count >= GET2(code, 1))
|
||||
+ if (++count >= (int)GET2(code, 1))
|
||||
{ ADD_NEW_DATA(-(state_offset + 2 + IMM2_SIZE), 0, ncount); }
|
||||
else
|
||||
{ ADD_NEW_DATA(-state_offset, count, ncount); }
|
||||
@@ -2024,7 +2024,7 @@ for (;;)
|
||||
active_count--; /* Remove non-match possibility */
|
||||
next_active_state--;
|
||||
}
|
||||
- if (++count >= GET2(code, 1))
|
||||
+ if (++count >= (int)GET2(code, 1))
|
||||
{ ADD_NEW_DATA(-(state_offset + 2 + IMM2_SIZE), 0, 0); }
|
||||
else
|
||||
{ ADD_NEW_DATA(-state_offset, count, 0); }
|
||||
@@ -2061,7 +2061,7 @@ for (;;)
|
||||
active_count--; /* Remove non-match possibility */
|
||||
next_active_state--;
|
||||
}
|
||||
- if (++count >= GET2(code, 1))
|
||||
+ if (++count >= (int)GET2(code, 1))
|
||||
{ ADD_NEW_DATA(-(state_offset + 2 + IMM2_SIZE), 0, 0); }
|
||||
else
|
||||
{ ADD_NEW_DATA(-state_offset, count, 0); }
|
||||
@@ -2431,7 +2431,7 @@ for (;;)
|
||||
}
|
||||
if ((c == d || c == otherd) == (codevalue < OP_NOTSTAR))
|
||||
{
|
||||
- if (++count >= GET2(code, 1))
|
||||
+ if (++count >= (int)GET2(code, 1))
|
||||
{ ADD_NEW(state_offset + dlen + 1 + IMM2_SIZE, 0); }
|
||||
else
|
||||
{ ADD_NEW(state_offset, count); }
|
||||
@@ -2480,7 +2480,7 @@ for (;;)
|
||||
active_count--; /* Remove non-match possibility */
|
||||
next_active_state--;
|
||||
}
|
||||
- if (++count >= GET2(code, 1))
|
||||
+ if (++count >= (int)GET2(code, 1))
|
||||
{ ADD_NEW(state_offset + dlen + 1 + IMM2_SIZE, 0); }
|
||||
else
|
||||
{ ADD_NEW(state_offset, count); }
|
||||
@@ -2553,11 +2553,11 @@ for (;;)
|
||||
case OP_CRRANGE:
|
||||
case OP_CRMINRANGE:
|
||||
count = current_state->count; /* Already matched */
|
||||
- if (count >= GET2(ecode, 1))
|
||||
+ if (count >= (int)GET2(ecode, 1))
|
||||
{ ADD_ACTIVE(next_state_offset + 1 + 2 * IMM2_SIZE, 0); }
|
||||
if (isinclass)
|
||||
{
|
||||
- unsigned int max = GET2(ecode, 1 + IMM2_SIZE);
|
||||
+ int max = (int)GET2(ecode, 1 + IMM2_SIZE);
|
||||
if (++count >= max && max != 0) /* Max 0 => no limit */
|
||||
{ ADD_NEW(next_state_offset + 1 + 2 * IMM2_SIZE, 0); }
|
||||
else
|
||||
diff --git a/pcretest.c b/pcretest.c
|
||||
index 25f3853..20dc0f1 100644
|
||||
--- a/pcretest.c
|
||||
+++ b/pcretest.c
|
||||
@@ -5043,7 +5043,7 @@ while (!done)
|
||||
DFA_WS_DIMENSION);
|
||||
if (count == 0)
|
||||
{
|
||||
- fprintf(outfile, "Matched, but too many subsidiary matches\n");
|
||||
+ fprintf(outfile, "Matched, but offsets vector is too small to show all matches\n");
|
||||
count = use_size_offsets/2;
|
||||
}
|
||||
}
|
||||
diff --git a/testdata/testinput8 b/testdata/testinput8
|
||||
index e235445..d91013b 100644
|
||||
--- a/testdata/testinput8
|
||||
+++ b/testdata/testinput8
|
||||
@@ -4798,4 +4798,7 @@
|
||||
xxxxxxxxabcd
|
||||
xx\xa0xxxxxabcd
|
||||
|
||||
+/abcd/
|
||||
+ abcd\O0
|
||||
+
|
||||
/-- End of testinput8 --/
|
||||
diff --git a/testdata/testoutput10 b/testdata/testoutput10
|
||||
index 9ee0f76..0e04205 100644
|
||||
--- a/testdata/testoutput10
|
||||
+++ b/testdata/testoutput10
|
||||
@@ -813,7 +813,7 @@ No match
|
||||
11111111111111111111111111111111111111111111111111111111111111111111111
|
||||
No match
|
||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
-Matched, but too many subsidiary matches
|
||||
+Matched, but offsets vector is too small to show all matches
|
||||
0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
1: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
2: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
@@ -841,7 +841,7 @@ Matched, but too many subsidiary matches
|
||||
11111111111111111111111111111111111111111111111111111111111111111111111
|
||||
No match
|
||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
-Matched, but too many subsidiary matches
|
||||
+Matched, but offsets vector is too small to show all matches
|
||||
0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
1: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
2: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
@@ -869,7 +869,7 @@ Matched, but too many subsidiary matches
|
||||
11111111111111111111111111111111111111111111111111111111111111111111111
|
||||
No match
|
||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
-Matched, but too many subsidiary matches
|
||||
+Matched, but offsets vector is too small to show all matches
|
||||
0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
1: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
2: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
@@ -897,7 +897,7 @@ Matched, but too many subsidiary matches
|
||||
11111111111111111111111111111111111111111111111111111111111111111111111
|
||||
No match
|
||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
-Matched, but too many subsidiary matches
|
||||
+Matched, but offsets vector is too small to show all matches
|
||||
0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
1: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
2: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
@@ -925,7 +925,7 @@ Matched, but too many subsidiary matches
|
||||
11111111111111111111111111111111111111111111111111111111111111111111111
|
||||
No match
|
||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
-Matched, but too many subsidiary matches
|
||||
+Matched, but offsets vector is too small to show all matches
|
||||
0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
1: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
2: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
diff --git a/testdata/testoutput8 b/testdata/testoutput8
|
||||
index 527ba4d..75affbe 100644
|
||||
--- a/testdata/testoutput8
|
||||
+++ b/testdata/testoutput8
|
||||
@@ -49,7 +49,7 @@ No match
|
||||
16: a
|
||||
17:
|
||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
-Matched, but too many subsidiary matches
|
||||
+Matched, but offsets vector is too small to show all matches
|
||||
0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
1: aaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
2: aaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
@@ -3260,7 +3260,7 @@ No match
|
||||
|
||||
/(.*)(\d*)/
|
||||
I have 2 numbers: 53147
|
||||
-Matched, but too many subsidiary matches
|
||||
+Matched, but offsets vector is too small to show all matches
|
||||
0: I have 2 numbers: 53147
|
||||
1: I have 2 numbers: 5314
|
||||
2: I have 2 numbers: 531
|
||||
@@ -3295,7 +3295,7 @@ Matched, but too many subsidiary matches
|
||||
|
||||
/(.*?)(\d*)/
|
||||
I have 2 numbers: 53147
|
||||
-Matched, but too many subsidiary matches
|
||||
+Matched, but offsets vector is too small to show all matches
|
||||
0: I have 2 numbers: 53147
|
||||
1: I have 2 numbers: 5314
|
||||
2: I have 2 numbers: 531
|
||||
@@ -7848,7 +7848,7 @@ Error -26 (nested recursion at the same subject position)
|
||||
|
||||
/(a+)/
|
||||
\O6aaaa
|
||||
-Matched, but too many subsidiary matches
|
||||
+Matched, but offsets vector is too small to show all matches
|
||||
0: aaaa
|
||||
1: aaa
|
||||
2: aa
|
||||
@@ -8016,4 +8016,8 @@ Error -30 (invalid data in workspace for DFA restart)
|
||||
0: xx\xa0xxxxxabcd
|
||||
1: xx\xa0xxxxxabc
|
||||
|
||||
+/abcd/
|
||||
+ abcd\O0
|
||||
+Matched, but offsets vector is too small to show all matches
|
||||
+
|
||||
/-- End of testinput8 --/
|
||||
diff --git a/testdata/testoutput9 b/testdata/testoutput9
|
||||
index 95cd618..0bb101a 100644
|
||||
--- a/testdata/testoutput9
|
||||
+++ b/testdata/testoutput9
|
||||
@@ -434,7 +434,7 @@ No match
|
||||
|
||||
/\D*/8
|
||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
-Matched, but too many subsidiary matches
|
||||
+Matched, but offsets vector is too small to show all matches
|
||||
0: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
1: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
2: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
@@ -460,7 +460,7 @@ Matched, but too many subsidiary matches
|
||||
|
||||
/\D*/8
|
||||
\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}
|
||||
-Matched, but too many subsidiary matches
|
||||
+Matched, but offsets vector is too small to show all matches
|
||||
0: \x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}
|
||||
1: \x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}
|
||||
2: \x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}
|
||||
--
|
||||
1.8.1.4
|
||||
|
20
pcre.spec
20
pcre.spec
@ -1,8 +1,8 @@
|
||||
# This is stable release:
|
||||
%global rcversion RC1
|
||||
#%%global rcversion RC1
|
||||
Name: pcre
|
||||
Version: 8.33
|
||||
Release: %{?rcversion:0.}3%{?rcversion:.%rcversion}%{?dist}
|
||||
Release: %{?rcversion:0.}1%{?rcversion:.%rcversion}%{?dist}
|
||||
%global myversion %{version}%{?rcversion:-%rcversion}
|
||||
Summary: Perl-compatible regular expression library
|
||||
Group: System Environment/Libraries
|
||||
@ -13,15 +13,6 @@ Source: ftp://ftp.csx.cam.ac.uk/pub/software/programming/%{name}/%{?rcversion:Te
|
||||
Patch0: pcre-8.21-multilib.patch
|
||||
# Refused by upstream, bug #675477
|
||||
Patch1: pcre-8.32-refused_spelling_terminated.patch
|
||||
# Fix big-endian issues, accepted by upstream after 8.33-RC1
|
||||
Patch2: pcre-8.33-RC1-Fix-retrieving-PCRE_INFO_MATCHLIMIT-and-PCRE_INFO_RE.patch
|
||||
# Fix pcregrep on empty line, in upstream after 8.33-RC1
|
||||
Patch3: pcre-8.33-RC1-Fix-pcregrep-so-that-it-can-find-empty-lines.patch
|
||||
# Grow buffer in pcretest properly, in upstream after 8.33-RC1
|
||||
Patch4: pcre-8.33-RC1-Fix-pcretest-crash-with-a-data-line-longer-than-6553.patch
|
||||
# Fix passing too small output vector to pcre_dfa_exec, in upstream after
|
||||
# 8.33-RC1, bug #963284
|
||||
Patch5: pcre-8.33-RC1-Fix-segfault-when-pcre_dfa_exec-is-called-with-an-ou.patch
|
||||
BuildRequires: readline-devel
|
||||
# New libtool to get rid of rpath
|
||||
BuildRequires: autoconf, automake, libtool
|
||||
@ -63,10 +54,6 @@ Utilities demonstrating PCRE capabilities like pcregrep or pcretest.
|
||||
# Get rid of rpath
|
||||
%patch0 -p1 -b .multilib
|
||||
%patch1 -p1 -b .terminated_typos
|
||||
%patch2 -p1 -b .fullinfo
|
||||
%patch3 -p1 -b .pcregrep_empty_line
|
||||
%patch4 -p1 -b .pcretest_grow_buffer
|
||||
%patch5 -p1 -b .vector_size
|
||||
# Because of rpath patch
|
||||
libtoolize --copy --force && autoreconf -vif
|
||||
# One contributor's name is non-UTF-8
|
||||
@ -130,6 +117,9 @@ make check
|
||||
%{_mandir}/man1/pcretest.*
|
||||
|
||||
%changelog
|
||||
* Thu May 30 2013 Petr Pisar <ppisar@redhat.com> - 8.33-1
|
||||
- 8.33 bump
|
||||
|
||||
* Thu May 16 2013 Petr Pisar <ppisar@redhat.com> - 8.33-0.3.RC1
|
||||
- Fix passing too small output vector to pcre_dfa_exec (bug #963284)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user