Skip to content

Commit dab9599

Browse files
committed
pcre2: Update to 10.43
1 parent 810f127 commit dab9599

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+23152
-8739
lines changed

COPYRIGHT.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,8 @@ License: Apache-2.0
457457

458458
Files: ./thirdparty/pcre2/
459459
Comment: PCRE2
460-
Copyright: 1997-2022, University of Cambridge
461-
2009-2022, Zoltan Herczeg
460+
Copyright: 1997-2024, University of Cambridge
461+
2009-2024, Zoltan Herczeg
462462
License: BSD-3-clause
463463

464464
Files: ./thirdparty/recastnavigation/

modules/regex/SCsub

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ if env["builtin_pcre2"]:
1919
thirdparty_sources = [
2020
"pcre2_auto_possess.c",
2121
"pcre2_chartables.c",
22+
"pcre2_chkdint.c",
2223
"pcre2_compile.c",
2324
"pcre2_config.c",
2425
"pcre2_context.c",

thirdparty/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ Exclude:
755755
## pcre2
756756

757757
- Upstream: http://www.pcre.org
758-
- Version: 10.42 (52c08847921a324c804cabf2814549f50bce1265, 2022)
758+
- Version: 10.43 (3864abdb713f78831dd12d898ab31bbb0fa630b6, 2024)
759759
- License: BSD-3-Clause
760760

761761
Files extracted from upstream source:
@@ -764,6 +764,7 @@ Files extracted from upstream source:
764764
- All `.h` files in `src/` apart from `pcre2posix.h`
765765
- `src/pcre2_jit_match.c`
766766
- `src/pcre2_jit_misc.c`
767+
- `src/pcre2_ucptables.c`
767768
- `src/sljit/`
768769
- `AUTHORS` and `LICENCE`
769770

thirdparty/pcre2/AUTHORS

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Email domain: gmail.com
88
Retired from University of Cambridge Computing Service,
99
Cambridge, England.
1010

11-
Copyright (c) 1997-2022 University of Cambridge
11+
Copyright (c) 1997-2024 University of Cambridge
1212
All rights reserved
1313

1414

@@ -19,7 +19,7 @@ Written by: Zoltan Herczeg
1919
Email local part: hzmester
2020
Emain domain: freemail.hu
2121

22-
Copyright(c) 2010-2022 Zoltan Herczeg
22+
Copyright(c) 2010-2024 Zoltan Herczeg
2323
All rights reserved.
2424

2525

@@ -30,7 +30,7 @@ Written by: Zoltan Herczeg
3030
Email local part: hzmester
3131
Emain domain: freemail.hu
3232

33-
Copyright(c) 2009-2022 Zoltan Herczeg
33+
Copyright(c) 2009-2024 Zoltan Herczeg
3434
All rights reserved.
3535

3636
####

thirdparty/pcre2/LICENCE

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Email domain: gmail.com
2626
Retired from University of Cambridge Computing Service,
2727
Cambridge, England.
2828

29-
Copyright (c) 1997-2022 University of Cambridge
29+
Copyright (c) 1997-2024 University of Cambridge
3030
All rights reserved.
3131

3232

@@ -37,7 +37,7 @@ Written by: Zoltan Herczeg
3737
Email local part: hzmester
3838
Email domain: freemail.hu
3939

40-
Copyright(c) 2010-2022 Zoltan Herczeg
40+
Copyright(c) 2010-2024 Zoltan Herczeg
4141
All rights reserved.
4242

4343

@@ -48,7 +48,7 @@ Written by: Zoltan Herczeg
4848
Email local part: hzmester
4949
Email domain: freemail.hu
5050

51-
Copyright(c) 2009-2022 Zoltan Herczeg
51+
Copyright(c) 2009-2024 Zoltan Herczeg
5252
All rights reserved.
5353

5454

thirdparty/pcre2/patches/sljit-macos11-conditional.patch

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ if the toolchain allows it.
1212

1313
Fixes: PCRE2Project/pcre2#109
1414
---
15-
sljit_src/sljitExecAllocator.c | 3 +++
15+
thirdparty/pcre2/src/sljit/sljitExecAllocator.c | 3 +++
1616
1 file changed, 3 insertions(+)
1717

18-
diff --git a/sljit_src/sljitExecAllocator.c b/sljit_src/sljitExecAllocator.c
19-
index 92d940dd..6359848c 100644
20-
--- a/sljit_src/sljitExecAllocator.c
21-
+++ b/sljit_src/sljitExecAllocator.c
18+
diff --git a/thirdparty/pcre2/src/sljit/sljitExecAllocator.c b/thirdparty/pcre2/src/sljit/sljitExecAllocator.c
19+
index 92d940ddc2..6359848cd5 100644
20+
--- a/thirdparty/pcre2/src/sljit/sljitExecAllocator.c
21+
+++ b/thirdparty/pcre2/src/sljit/sljitExecAllocator.c
2222
@@ -152,6 +152,9 @@ static SLJIT_INLINE void apple_update_wx_flags(sljit_s32 enable_exec)
2323
{
2424
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 110000

thirdparty/pcre2/src/config.h

+44-18
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,12 @@ sure both macros are undefined; an emulation function will then be used. */
5555
/* Define this if your compiler supports __attribute__((uninitialized)) */
5656
/* #undef HAVE_ATTRIBUTE_UNINITIALIZED */
5757

58-
/* Define to 1 if you have the `bcopy' function. */
58+
/* Define to 1 if you have the 'bcopy' function. */
5959
/* #undef HAVE_BCOPY */
6060

61+
/* Define this if your compiler provides __builtin_mul_overflow() */
62+
/* #undef HAVE_BUILTIN_MUL_OVERFLOW */
63+
6164
/* Define to 1 if you have the <bzlib.h> header file. */
6265
/* #undef HAVE_BZLIB_H */
6366

@@ -79,16 +82,16 @@ sure both macros are undefined; an emulation function will then be used. */
7982
/* Define to 1 if you have the <limits.h> header file. */
8083
/* #undef HAVE_LIMITS_H */
8184

82-
/* Define to 1 if you have the `memfd_create' function. */
85+
/* Define to 1 if you have the 'memfd_create' function. */
8386
/* #undef HAVE_MEMFD_CREATE */
8487

85-
/* Define to 1 if you have the `memmove' function. */
88+
/* Define to 1 if you have the 'memmove' function. */
8689
/* #undef HAVE_MEMMOVE */
8790

8891
/* Define to 1 if you have the <minix/config.h> header file. */
8992
/* #undef HAVE_MINIX_CONFIG_H */
9093

91-
/* Define to 1 if you have the `mkostemp' function. */
94+
/* Define to 1 if you have the 'mkostemp' function. */
9295
/* #undef HAVE_MKOSTEMP */
9396

9497
/* Define if you have POSIX threads libraries and header files. */
@@ -109,7 +112,7 @@ sure both macros are undefined; an emulation function will then be used. */
109112
/* Define to 1 if you have the `realpath' function. */
110113
/* #undef HAVE_REALPATH */
111114

112-
/* Define to 1 if you have the `secure_getenv' function. */
115+
/* Define to 1 if you have the 'secure_getenv' function. */
113116
/* #undef HAVE_SECURE_GETENV */
114117

115118
/* Define to 1 if you have the <stdint.h> header file. */
@@ -121,7 +124,7 @@ sure both macros are undefined; an emulation function will then be used. */
121124
/* Define to 1 if you have the <stdlib.h> header file. */
122125
/* #undef HAVE_STDLIB_H */
123126

124-
/* Define to 1 if you have the `strerror' function. */
127+
/* Define to 1 if you have the 'strerror' function. */
125128
/* #undef HAVE_STRERROR */
126129

127130
/* Define to 1 if you have the <strings.h> header file. */
@@ -181,7 +184,7 @@ sure both macros are undefined; an emulation function will then be used. */
181184
matching attempt. The value is also used to limit a loop counter in
182185
pcre2_dfa_match(). There is a runtime interface for setting a different
183186
limit. The limit exists in order to catch runaway regular expressions that
184-
take for ever to determine that they do not match. The default is set very
187+
take forever to determine that they do not match. The default is set very
185188
large so that it does not accidentally catch legitimate cases. */
186189
#ifndef MATCH_LIMIT
187190
#define MATCH_LIMIT 10000000
@@ -215,6 +218,12 @@ sure both macros are undefined; an emulation function will then be used. */
215218
#define MAX_NAME_SIZE 32
216219
#endif
217220

221+
/* The value of MAX_VARLOOKBEHIND specifies the default maximum length, in
222+
characters, for a variable-length lookbehind assertion. */
223+
#ifndef MAX_VARLOOKBEHIND
224+
#define MAX_VARLOOKBEHIND 255
225+
#endif
226+
218227
/* Defining NEVER_BACKSLASH_C locks out the use of \C in all patterns. */
219228
/* #undef NEVER_BACKSLASH_C */
220229

@@ -236,7 +245,7 @@ sure both macros are undefined; an emulation function will then be used. */
236245
#define PACKAGE_NAME "PCRE2"
237246

238247
/* Define to the full name and version of this package. */
239-
#define PACKAGE_STRING "PCRE2 10.42"
248+
#define PACKAGE_STRING "PCRE2 10.43"
240249

241250
/* Define to the one symbol short name of this package. */
242251
#define PACKAGE_TARNAME "pcre2"
@@ -245,7 +254,7 @@ sure both macros are undefined; an emulation function will then be used. */
245254
#define PACKAGE_URL ""
246255

247256
/* Define to the version of this package. */
248-
#define PACKAGE_VERSION "10.42"
257+
#define PACKAGE_VERSION "10.43"
249258

250259
/* The value of PARENS_NEST_LIMIT specifies the maximum depth of nested
251260
parentheses (of any kind) in a pattern. This limits the amount of system
@@ -275,12 +284,16 @@ sure both macros are undefined; an emulation function will then be used. */
275284
/* Define to any value to include debugging code. */
276285
/* #undef PCRE2_DEBUG */
277286

287+
/* to make a symbol visible */
288+
#define PCRE2_EXPORT
289+
278290
/* If you are compiling for a system other than a Unix-like system or
279291
Win32, and it needs some magic to be inserted before the definition
280292
of a function that is exported by the library, define this macro to
281293
contain the relevant magic. If you do not define this macro, a suitable
282-
__declspec value is used for Windows systems; in other environments
283-
"extern" is used for a C compiler and "extern C" for a C++ compiler.
294+
__declspec value is used for Windows systems; in other environments
295+
a compiler relevant "extern" is used with any "visibility" related
296+
attributes from PCRE2_EXPORT included.
284297
This macro apears at the start of every exported function that is part
285298
of the external API. It does not appear on functions that are "external"
286299
in the C sense, but which are internal to the library. */
@@ -298,11 +311,14 @@ sure both macros are undefined; an emulation function will then be used. */
298311
unless SUPPORT_JIT is also defined. */
299312
/* #undef SLJIT_PROT_EXECUTABLE_ALLOCATOR */
300313

301-
/* Define to 1 if all of the C90 standard headers exist (not just the ones
314+
/* Define to 1 if all of the C89 standard headers exist (not just the ones
302315
required in a freestanding environment). This macro is provided for
303316
backward compatibility; new code need not use it. */
304317
/* #undef STDC_HEADERS */
305318

319+
/* Define to any value to enable differential fuzzing support. */
320+
/* #undef SUPPORT_DIFF_FUZZ */
321+
306322
/* Define to any value to enable support for Just-In-Time compiling. */
307323
/* #undef SUPPORT_JIT */
308324

@@ -350,7 +366,7 @@ sure both macros are undefined; an emulation function will then be used. */
350366
/* Define to any value for valgrind support to find invalid memory reads. */
351367
/* #undef SUPPORT_VALGRIND */
352368

353-
/* Enable extensions on AIX 3, Interix. */
369+
/* Enable extensions on AIX, Interix, z/OS. */
354370
#ifndef _ALL_SOURCE
355371
# define _ALL_SOURCE 1
356372
#endif
@@ -411,11 +427,15 @@ sure both macros are undefined; an emulation function will then be used. */
411427
#ifndef __STDC_WANT_IEC_60559_DFP_EXT__
412428
# define __STDC_WANT_IEC_60559_DFP_EXT__ 1
413429
#endif
430+
/* Enable extensions specified by C23 Annex F. */
431+
#ifndef __STDC_WANT_IEC_60559_EXT__
432+
# define __STDC_WANT_IEC_60559_EXT__ 1
433+
#endif
414434
/* Enable extensions specified by ISO/IEC TS 18661-4:2015. */
415435
#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
416436
# define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
417437
#endif
418-
/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */
438+
/* Enable extensions specified by C23 Annex H and ISO/IEC TS 18661-3:2015. */
419439
#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
420440
# define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
421441
#endif
@@ -438,20 +458,26 @@ sure both macros are undefined; an emulation function will then be used. */
438458
#endif
439459

440460
/* Version number of package */
441-
#define VERSION "10.42"
461+
#define VERSION "10.43"
442462

443463
/* Number of bits in a file offset, on hosts where this is settable. */
444464
/* #undef _FILE_OFFSET_BITS */
445465

446-
/* Define for large files, on AIX-style hosts. */
466+
/* Define to 1 on platforms where this makes off_t a 64-bit type. */
447467
/* #undef _LARGE_FILES */
448468

449-
/* Define to empty if `const' does not conform to ANSI C. */
469+
/* Number of bits in time_t, on hosts where this is settable. */
470+
/* #undef _TIME_BITS */
471+
472+
/* Define to 1 on platforms where this makes time_t a 64-bit type. */
473+
/* #undef __MINGW_USE_VC2005_COMPAT */
474+
475+
/* Define to empty if 'const' does not conform to ANSI C. */
450476
/* #undef const */
451477

452478
/* Define to the type of a signed integer type of width exactly 64 bits if
453479
such a type exists and the standard includes do not define it. */
454480
/* #undef int64_t */
455481

456-
/* Define to `unsigned int' if <sys/types.h> does not define. */
482+
/* Define as 'unsigned int' if <stddef.h> doesn't define. */
457483
/* #undef size_t */

0 commit comments

Comments
 (0)