xref: /aosp_15_r20/external/lzma/DOC/License.txt (revision f6dc9357d832569d4d1f5d24eacdb3935a1ae8e6)
1  7-Zip source code
2  ~~~~~~~~~~~~~~~~~
3  License for use and distribution
4  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
6  7-Zip Copyright (C) 1999-2024 Igor Pavlov.
7
8  The licenses for files are:
9
10    - CPP/7zip/Compress/Rar* files: the "GNU LGPL" with "unRAR license restriction"
11    - CPP/7zip/Compress/LzfseDecoder.cpp: the "BSD 3-clause License"
12    - C/ZstdDec.c: the "BSD 3-clause License"
13    - C/Xxh64.c: the "BSD 2-clause License"
14    - Some files are "public domain" files, if "public domain" status is stated in source file.
15    - the "GNU LGPL" for all other files. If there is no license information in
16       some source file, that file is under the "GNU LGPL".
17
18  The "GNU LGPL" with "unRAR license restriction" means that you must follow both
19  "GNU LGPL" rules and "unRAR license restriction" rules.
20
21
22
23
24GNU LGPL information
25--------------------
26
27    This library is free software; you can redistribute it and/or
28    modify it under the terms of the GNU Lesser General Public
29    License as published by the Free Software Foundation; either
30    version 2.1 of the License, or (at your option) any later version.
31
32    This library is distributed in the hope that it will be useful,
33    but WITHOUT ANY WARRANTY; without even the implied warranty of
34    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
35    Lesser General Public License for more details.
36
37    You should have received a copy of the GNU Lesser General Public
38    License along with this library; if not,
39    you can get a copy of the GNU Lesser General Public License from
40    http://www.gnu.org/
41
42
43
44
45BSD 3-clause License in 7-Zip code
46----------------------------------
47
48  The "BSD 3-clause License" is used for the following code in 7z.dll
49    1) LZFSE data decompression.
50         CPP/7zip/Compress/LzfseDecoder.cpp.
51       That code was derived from the code in the "LZFSE compression library" developed by Apple Inc,
52       that also uses the "BSD 3-clause License".
53    2) ZSTD data decompression.
54         C/ZstdDec.c
55       that code was developed using original zstd decoder code as reference code.
56       The original zstd decoder code was developed by Facebook Inc,
57       that also uses the "BSD 3-clause License".
58
59  Copyright (c) 2015-2016, Apple Inc. All rights reserved.
60  Copyright (c) Facebook, Inc. All rights reserved.
61  Copyright (c) 2023-2024 Igor Pavlov.
62
63Text of the "BSD 3-clause License"
64----------------------------------
65
66Redistribution and use in source and binary forms, with or without modification,
67are permitted provided that the following conditions are met:
68
691. Redistributions of source code must retain the above copyright notice, this
70   list of conditions and the following disclaimer.
71
722. Redistributions in binary form must reproduce the above copyright notice,
73   this list of conditions and the following disclaimer in the documentation
74   and/or other materials provided with the distribution.
75
763. Neither the name of the copyright holder nor the names of its contributors may
77   be used to endorse or promote products derived from this software without
78   specific prior written permission.
79
80THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
81ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
82WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
83DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
84ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
85(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
86LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
87ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
88(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
89SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
90
91---
92
93
94
95
96BSD 2-clause License in 7-Zip code
97----------------------------------
98
99  The "BSD 2-clause License" is used for the XXH64 code in 7-Zip.
100    C/Xxh64.c
101
102  XXH64 code in 7-Zip was derived from the original XXH64 code developed by Yann Collet.
103
104  Copyright (c) 2012-2021 Yann Collet.
105  Copyright (c) 2023-2024 Igor Pavlov.
106
107Text of the "BSD 2-clause License"
108----------------------------------
109
110Redistribution and use in source and binary forms, with or without modification,
111are permitted provided that the following conditions are met:
112
1131. Redistributions of source code must retain the above copyright notice, this
114   list of conditions and the following disclaimer.
115
1162. Redistributions in binary form must reproduce the above copyright notice,
117   this list of conditions and the following disclaimer in the documentation
118   and/or other materials provided with the distribution.
119
120THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
121ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
122WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
123DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
124ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
125(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
126LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
127ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
128(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
129SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
130
131---
132
133
134
135
136unRAR license restriction
137-------------------------
138
139The decompression engine for RAR archives was developed using source
140code of unRAR program.
141All copyrights to original unRAR code are owned by Alexander Roshal.
142
143The license for original unRAR code has the following restriction:
144
145  The unRAR sources cannot be used to re-create the RAR compression algorithm,
146  which is proprietary. Distribution of modified unRAR sources in separate form
147  or as a part of other software is permitted, provided that it is clearly
148  stated in the documentation and source comments that the code may
149  not be used to develop a RAR (WinRAR) compatible archiver.
150
151--
152