Skip to content

Commit d8a9f2f

Browse files
authored
Add LICENSE file for sljit in the tarball (#692)
1 parent a0184f5 commit d8a9f2f

File tree

5 files changed

+89
-7
lines changed

5 files changed

+89
-7
lines changed

LICENCE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ testdata directory is not copyrighted and is in the public domain.
1616
The basic library functions are written in C and are freestanding. Also
1717
included in the distribution is a just-in-time compiler that can be used to
1818
optimize pattern matching. This is an optional feature that can be omitted when
19-
the library is built.
19+
the library is built. The just-in-time compiler is separately licensed under the
20+
"2-clause BSD" licence.
2021

2122

2223
COPYRIGHT
@@ -53,6 +54,8 @@ COPYRIGHT
5354
Copyright (c) 2009-2024 Zoltan Herczeg
5455
All rights reserved.
5556

57+
The code in the `deps/sljit` directory has its own LICENSE file.
58+
5659
### All other contributions
5760

5861
Many other contributors have participated in the authorship of PCRE2. As PCRE2

Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,8 @@ CLEANFILES += src/pcre2_chartables.c
467467
# when pcre2_jit_compile.c is processed, so they must be distributed.
468468

469469
EXTRA_DIST += \
470+
deps/sljit/LICENSE \
471+
deps/sljit/README \
470472
deps/sljit/sljit_src/sljitConfig.h \
471473
deps/sljit/sljit_src/sljitConfigCPU.h \
472474
deps/sljit/sljit_src/sljitConfigInternal.h \

maint/manifest-tarball

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ drwxr-xr-x tarball-dir/pcre2-SNAPSHOT/cmake
3737
-rwxr-xr-x tarball-dir/pcre2-SNAPSHOT/depcomp
3838
drwxr-xr-x tarball-dir/pcre2-SNAPSHOT/deps
3939
drwxr-xr-x tarball-dir/pcre2-SNAPSHOT/deps/sljit
40+
-rw-r--r-- tarball-dir/pcre2-SNAPSHOT/deps/sljit/LICENSE
41+
-rw-r--r-- tarball-dir/pcre2-SNAPSHOT/deps/sljit/README
4042
drwxr-xr-x tarball-dir/pcre2-SNAPSHOT/deps/sljit/sljit_src
4143
drwxr-xr-x tarball-dir/pcre2-SNAPSHOT/deps/sljit/sljit_src/allocator_src
4244
-rw-r--r-- tarball-dir/pcre2-SNAPSHOT/deps/sljit/sljit_src/allocator_src/sljitExecAllocatorApple.c

src/pcre2_fuzzsupport.c

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,44 @@
1+
/*************************************************
2+
* Perl-Compatible Regular Expressions *
3+
*************************************************/
4+
5+
/* PCRE is a library of functions to support regular expressions whose syntax
6+
and semantics are as close as possible to those of the Perl 5 language.
7+
8+
Written by Philip Hazel
9+
Original API code Copyright (c) 1997-2012 University of Cambridge
10+
New API code Copyright (c) 2016-2023 University of Cambridge
11+
12+
-----------------------------------------------------------------------------
13+
Redistribution and use in source and binary forms, with or without
14+
modification, are permitted provided that the following conditions are met:
15+
16+
* Redistributions of source code must retain the above copyright notice,
17+
this list of conditions and the following disclaimer.
18+
19+
* Redistributions in binary form must reproduce the above copyright
20+
notice, this list of conditions and the following disclaimer in the
21+
documentation and/or other materials provided with the distribution.
22+
23+
* Neither the name of the University of Cambridge nor the names of its
24+
contributors may be used to endorse or promote products derived from
25+
this software without specific prior written permission.
26+
27+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
28+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
31+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37+
POSSIBILITY OF SUCH DAMAGE.
38+
-----------------------------------------------------------------------------
39+
*/
40+
41+
142
/***************************************************************************
243
Fuzzer driver for PCRE2. Given an arbitrary string of bytes and a length, it
344
tries to compile and match it, deriving options from the string itself. If
@@ -11,6 +52,7 @@ Updated February 2024 (Addison Crump added 16-bit/32-bit and JIT support)
1152
Further updates March/April/May 2024 by PH
1253
***************************************************************************/
1354

55+
1456
#include <errno.h>
1557
#include <stdarg.h>
1658
#include <stdio.h>

src/pcre2posix_test.c

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,45 @@
11
/*************************************************
2-
* PCRE2 POSIX interface test program *
2+
* Perl-Compatible Regular Expressions *
33
*************************************************/
44

5-
/*
6-
Written by Philip Hazel, December 2022
7-
Copyright (c) 2022
8-
File last edited: December 2022
5+
/* PCRE is a library of functions to support regular expressions whose syntax
6+
and semantics are as close as possible to those of the Perl 5 language.
97
10-
This program tests the POSIX wrapper to the PCRE2 regular expression library.
8+
Written by Philip Hazel
9+
Original API code Copyright (c) 1997-2012 University of Cambridge
10+
New API code Copyright (c) 2016-2023 University of Cambridge
11+
12+
-----------------------------------------------------------------------------
13+
Redistribution and use in source and binary forms, with or without
14+
modification, are permitted provided that the following conditions are met:
15+
16+
* Redistributions of source code must retain the above copyright notice,
17+
this list of conditions and the following disclaimer.
18+
19+
* Redistributions in binary form must reproduce the above copyright
20+
notice, this list of conditions and the following disclaimer in the
21+
documentation and/or other materials provided with the distribution.
22+
23+
* Neither the name of the University of Cambridge nor the names of its
24+
contributors may be used to endorse or promote products derived from
25+
this software without specific prior written permission.
26+
27+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
28+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
31+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37+
POSSIBILITY OF SUCH DAMAGE.
38+
-----------------------------------------------------------------------------
39+
*/
40+
41+
42+
/* This program tests the POSIX wrapper to the PCRE2 regular expression library.
1143
The main PCRE2 test program is pcre2test, which also tests these function
1244
calls. This little program is needed to test the case where the client includes
1345
pcre2posix.h but not pcre2.h, mainly to make sure that it builds successfully.
@@ -22,6 +54,7 @@ zero. If any test fails there is output to stderr, and the return code is 1.
2254
For testing purposes, the "-v" option causes verification output to be written
2355
to stdout. */
2456

57+
2558
#include <stdio.h>
2659
#include <string.h>
2760
#include <pcre2posix.h>

0 commit comments

Comments
 (0)