Skip to content

Commit 28e14ef

Browse files
Guilherme Bernardoclaude
andcommitted
fix(testcomp): complete the archive's license notices; enforce them
Review of #85 (Copilot, Herbert): the license bundle missed notices, and the smoke test masked wrapper failures. Licenses, audited from the sources of the exact versions shipped: - KLEE 3.1 runtime: the notices of the 9 files under another license than KLEE's (8 klee-libc, Freestanding/memcmp.c; BSD), verbatim, and the LLVM license for the UBSan runtime; - AFL++ 4.40c: t1ha and xxHash, compiled into afl-fuzz, verbatim, and the LLVM license for SanitizerCoveragePCGUARD; - STP 2.3.4: LICENSE_COMPONENTS and the texts it names for Bit::Vector (Artistic-1.0-Perl, LGPL-2.0; GPL-2 is LICENSE); - LLVM 16's own LICENSE.TXT, and the Debian copyright of clang's resource headers (libclang-common-16-dev); - the full text of every /usr/share/common-licenses license the bundled Debian copyright files name. licenses/README.md is the checklist: component, version, files, license, texts. make-archive.sh enforces it: every file of the archive must match a row whose license files are present, or the archive is not built (648 files covered; a stray file makes it fail). smoketest.sh now fails on a nonzero wrapper exit, printing the log: the wrapper exits 0 whenever Map2Check ran, so any other status is a failure even with a suite on disk. Checked: the archive builds from the develop code (install of fb2423b) and its smoke test passes on a clean ubuntu:26.04, the FM-Tools CI image. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent e455680 commit 28e14ef

9 files changed

Lines changed: 1226 additions & 6 deletions
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
AFL++ 4.40c: third-party code compiled into bin/afl-fuzz (hashing, src/afl-performance.c),
2+
besides AFL++'s own Apache-2.0 (AFLplusplus-4.40c.LICENSE), and the LLVM-derived pass.
3+
Source: https://github.com/AFLplusplus/AFLplusplus/tree/v4.40c, verbatim.
4+
5+
==============================================================================
6+
include/t1ha.h
7+
==============================================================================
8+
/*
9+
* Copyright (c) 2016-2020 Positive Technologies, https://www.ptsecurity.com,
10+
* Fast Positive Hash.
11+
*
12+
* Portions Copyright (c) 2010-2020 Leonid Yuriev <leo@yuriev.ru>,
13+
* The 1Hippeus project (t1h).
14+
*
15+
* This software is provided 'as-is', without any express or implied
16+
* warranty. In no event will the authors be held liable for any damages
17+
* arising from the use of this software.
18+
*
19+
* Permission is granted to anyone to use this software for any purpose,
20+
* including commercial applications, and to alter it and redistribute it
21+
* freely, subject to the following restrictions:
22+
*
23+
* 1. The origin of this software must not be misrepresented; you must not
24+
* claim that you wrote the original software. If you use this software
25+
* in a product, an acknowledgement in the product documentation would be
26+
* appreciated but is not required.
27+
* 2. Altered source versions must be plainly marked as such, and must not be
28+
* misrepresented as being the original software.
29+
* 3. This notice may not be removed or altered from any source distribution.
30+
*/
31+
32+
==============================================================================
33+
include/xxhash.h
34+
==============================================================================
35+
/*
36+
* xxHash - Extremely Fast Hash algorithm
37+
* Header File
38+
* Copyright (C) 2012-2023 Yann Collet
39+
*
40+
* BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php)
41+
*
42+
* Redistribution and use in source and binary forms, with or without
43+
* modification, are permitted provided that the following conditions are
44+
* met:
45+
*
46+
* * Redistributions of source code must retain the above copyright
47+
* notice, this list of conditions and the following disclaimer.
48+
* * Redistributions in binary form must reproduce the above
49+
* copyright notice, this list of conditions and the following disclaimer
50+
* in the documentation and/or other materials provided with the
51+
* distribution.
52+
*
53+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
54+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
55+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
56+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
57+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
58+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
59+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
60+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
61+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
62+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
63+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
64+
*
65+
* You can contact the author at:
66+
* - xxHash homepage: https://www.xxhash.com
67+
* - xxHash source repository: https://github.com/Cyan4973/xxHash
68+
*/
69+
70+
==============================================================================
71+
instrumentation/SanitizerCoveragePCGUARD.so.cc (lib/afl/SanitizerCoveragePCGUARD.so)
72+
==============================================================================
73+
"Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions."
74+
See LLVM-16.LICENSE.TXT.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
The "Artistic License"
2+
3+
Preamble
4+
5+
The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications.
6+
7+
Definitions:
8+
9+
"Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification.
10+
11+
"Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder as specified below.
12+
13+
"Copyright Holder" is whoever is named in the copyright or copyrights for the package.
14+
15+
"You" is you, if you're thinking about copying or distributing this Package.
16+
17+
"Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.)
18+
19+
"Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it.
20+
21+
1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers.
22+
23+
2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version.
24+
25+
3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following:
26+
27+
a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as uunet.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package.
28+
b) use the modified Package only within your corporation or organization.
29+
c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version.
30+
d) make other distribution arrangements with the Copyright Holder.
31+
32+
4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following:
33+
34+
a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version.
35+
b) accompany the distribution with the machine-readable source of the Package with your modifications.
36+
c) give non-standard executables non-standard names, and clearly document the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version.
37+
d) make other distribution arrangements with the Copyright Holder.
38+
39+
5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. You may embed this Package's interpreter within an executable of yours (by linking); this shall be construed as a mere form of aggregation, provided that the complete Standard Version of the interpreter is so embedded.
40+
41+
6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whoever generated them, and may be sold commercially, and may be aggregated with this Package. If such scripts or library files are aggregated with this Package via the so-called "undump" or "unexec" methods of producing a binary executable image, then distribution of such an image shall neither be construed as a distribution of this Package nor shall it fall under the restrictions of Paragraphs 3 and 4, provided that you do not represent such an executable image as a Standard Version of this Package.
42+
43+
7. C subroutines (or comparably compiled subroutines in other languages) supplied by you and linked into this Package in order to emulate subroutines and variables of the language defined by this Package shall not be considered part of this Package, but are the equivalent of input as in Paragraph 6, provided these subroutines do not change the language in any way that would cause it to fail the regression tests for the language.
44+
45+
8. Aggregation of this Package with a commercial distribution is always permitted provided that the use of this Package is embedded; that is, when no overt attempt is made to make this Package's interfaces visible to the end user of the commercial distribution. Such use shall not be construed as a distribution of this Package.
46+
47+
9. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission.
48+
49+
10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
50+
51+
The End

0 commit comments

Comments
 (0)