]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add Unlicense to coregrind/m_debuginfo/tinfl.c
authorMark Wielaard <mark@klomp.org>
Tue, 27 Feb 2024 12:36:39 +0000 (13:36 +0100)
committerMark Wielaard <mark@klomp.org>
Tue, 27 Feb 2024 12:44:33 +0000 (13:44 +0100)
The tinfl.c file comes from the public domain miniz project.
Upstream added an explicit Public Domain declaration using
the Unlicense. No other changes were made, so all our valgrind
specific changes still apply. This doesn't really change the
license as used for our derived version, which is distributed
under GPLv2+. But it adds some history and a legal statement
that is more clear than just saying "public domain".

This is the upstream commit:

commit e8dfb6599a2294584571ad4806dc4e300323858c
Author: Rich Geldreich <richgel99@gmail.com>
Date:   Sat May 28 22:15:49 2011 +0000

    added unlicense.org statement

coregrind/m_debuginfo/tinfl.c

index 970e0b82758a832179b8811e3572cdaa3a399943..612a69f6c9cfc94e8a901360638a523c39e6a1f7 100644 (file)
@@ -4,6 +4,7 @@
 
 /* tinfl.c v1.11 - public domain inflate with zlib header parsing/adler32
    checking (inflate-only subset of miniz.c)
+   See "unlicense" statement at the end of this file.
 
    Rich Geldreich <richgel99@gmail.com>, last updated May 20, 2011
 
@@ -594,3 +595,30 @@ int tinfl_decompress_mem_to_callback(const void *pIn_buf, SizeT *pIn_buf_size, t
 }
 
 #endif // #ifndef TINFL_HEADER_FILE_ONLY
+
+/* 
+  This is free and unencumbered software released into the public domain.
+
+  Anyone is free to copy, modify, publish, use, compile, sell, or
+  distribute this software, either in source code form or as a compiled
+  binary, for any purpose, commercial or non-commercial, and by any
+  means.
+
+  In jurisdictions that recognize copyright laws, the author or authors
+  of this software dedicate any and all copyright interest in the
+  software to the public domain. We make this dedication for the benefit
+  of the public at large and to the detriment of our heirs and
+  successors. We intend this dedication to be an overt act of
+  relinquishment in perpetuity of all present and future rights to this
+  software under copyright law.
+
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+  OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+  ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+  OTHER DEALINGS IN THE SOFTWARE.
+
+  For more information, please refer to <http://unlicense.org/>
+*/