Skip to content

Commit dccfaa4

Browse files
committed
pcre: upgrade to 8.43
1 parent 600dd54 commit dccfaa4

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
lines changed

deps/pcre/LICENCE

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Email domain: cam.ac.uk
2525
University of Cambridge Computing Service,
2626
Cambridge, England.
2727

28-
Copyright (c) 1997-2018 University of Cambridge
28+
Copyright (c) 1997-2019 University of Cambridge
2929
All rights reserved.
3030

3131

@@ -34,9 +34,9 @@ PCRE JUST-IN-TIME COMPILATION SUPPORT
3434

3535
Written by: Zoltan Herczeg
3636
Email local part: hzmester
37-
Emain domain: freemail.hu
37+
Email domain: freemail.hu
3838

39-
Copyright(c) 2010-2018 Zoltan Herczeg
39+
Copyright(c) 2010-2019 Zoltan Herczeg
4040
All rights reserved.
4141

4242

@@ -45,9 +45,9 @@ STACK-LESS JUST-IN-TIME COMPILER
4545

4646
Written by: Zoltan Herczeg
4747
Email local part: hzmester
48-
Emain domain: freemail.hu
48+
Email domain: freemail.hu
4949

50-
Copyright(c) 2009-2018 Zoltan Herczeg
50+
Copyright(c) 2009-2019 Zoltan Herczeg
5151
All rights reserved.
5252

5353

deps/pcre/pcre.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ POSSIBILITY OF SUCH DAMAGE.
4242
/* The current PCRE version information. */
4343

4444
#define PCRE_MAJOR 8
45-
#define PCRE_MINOR 42
45+
#define PCRE_MINOR 43
4646
#define PCRE_PRERELEASE
47-
#define PCRE_DATE 2018-03-20
47+
#define PCRE_DATE 2019-02-23
4848

4949
#define PCRE_EXP_DECL extern
5050

deps/pcre/pcre_compile.c

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
and semantics are as close as possible to those of the Perl 5 language.
77
88
Written by Philip Hazel
9-
Copyright (c) 1997-2016 University of Cambridge
9+
Copyright (c) 1997-2018 University of Cambridge
1010
1111
-----------------------------------------------------------------------------
1212
Redistribution and use in source and binary forms, with or without
@@ -3299,7 +3299,7 @@ for(;;)
32993299
if ((*xclass_flags & XCL_MAP) == 0)
33003300
{
33013301
/* No bits are set for characters < 256. */
3302-
if (list[1] == 0) return TRUE;
3302+
if (list[1] == 0) return (*xclass_flags & XCL_NOT) == 0;
33033303
/* Might be an empty repeat. */
33043304
continue;
33053305
}
@@ -7647,6 +7647,8 @@ for (;; ptr++)
76477647
/* Can't determine a first byte now */
76487648

76497649
if (firstcharflags == REQ_UNSET) firstcharflags = REQ_NONE;
7650+
zerofirstchar = firstchar;
7651+
zerofirstcharflags = firstcharflags;
76507652
continue;
76517653

76527654

@@ -8687,10 +8689,18 @@ do {
86878689
if (!is_anchored(scode, new_map, cd, atomcount)) return FALSE;
86888690
}
86898691

8690-
/* Positive forward assertions and conditions */
8692+
/* Positive forward assertion */
86918693

8692-
else if (op == OP_ASSERT || op == OP_COND)
8694+
else if (op == OP_ASSERT)
8695+
{
8696+
if (!is_anchored(scode, bracket_map, cd, atomcount)) return FALSE;
8697+
}
8698+
8699+
/* Condition; not anchored if no second branch */
8700+
8701+
else if (op == OP_COND)
86938702
{
8703+
if (scode[GET(scode,1)] != OP_ALT) return FALSE;
86948704
if (!is_anchored(scode, bracket_map, cd, atomcount)) return FALSE;
86958705
}
86968706

deps/pcre/pcre_jit_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9002,7 +9002,7 @@ if (exact > 1)
90029002
#ifdef SUPPORT_UTF
90039003
&& !common->utf
90049004
#endif
9005-
)
9005+
&& type != OP_ANYNL && type != OP_EXTUNI)
90069006
{
90079007
OP2(SLJIT_ADD, TMP1, 0, STR_PTR, 0, SLJIT_IMM, IN_UCHARS(exact));
90089008
add_jump(compiler, &backtrack->topbacktracks, CMP(SLJIT_GREATER, TMP1, 0, STR_END, 0));

0 commit comments

Comments
 (0)