Space Physics Data Facility
NASA/Goddard Space Flight Center
This software may be copied or redistributed as long as it is not sold for profit, but it can be incorporated into any other substantive product with or without modifications for profit or non-profit. If the software is modified, it must include the following notices:
The software is not the original (for protection of the original author’s reputations from any problems introduced by others)
Change history (e.g. date, functionality, etc.)
This copyright notice must be reproduced on each copy made. This software is provided as is without any express or implied warranties whatsoever.
The CDF team greatly appreciates the efforts of Mr. Alfredo Ortega, from CORE IMPACT’s Exploit Writing Team (EWT), at Core Security Technologies for discovering, researching and reporting the vulnerability in our code. Their advisory (Advisory ID: CORE-2008-0326, published May 5, 2008) is available at http://www.coresecurity.com.
The CDF team greatly appreciates the efforts of Mr. Leon Juranic, from Infigo Information Security, http://www.infigo.hr, for reporting and testing the vulnerability in our code.
This software is in the public domain. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, without any conditions or restrictions. This software is provided “as is” without express or implied warranty.
The MD5 message-digestalgorithm was developed by Ron Rivest. The public domain C language implementation used in this program was written by Colin Plumb in 1993, no copyright is claimed.
This code is in the public domain; do with it what you wish. Equivalent code is available from RSA Data Security, Inc. This code has been tested against that, and is equivalent. Brutally hacked by John Walker back from ANSI C to K&R (no prototypes) to maintain the tradition that Netfone will compile with Sun’s original “cc”.
deflate.c — compress data using the deflation algorithm Copyright (C) 1995-2023 Jean-loup Gailly and Mark Adler For conditions of distribution and use, see copyright notice in zlib.h
Acknowledgments: “The idea of lazy evaluation of matches is due to Jan-Mark Wams, and I found it in ‘freeze’ written by Leonid Broukhis. Thanks to many people for bug reports and testing.”
References:
Deutsch, L.P., “DEFLATE Compressed Data Format Specification”. Available in http://tools.ietf.org/html/rfc1951
A description of the Rabin and Karp algorithm is given in the book “Algorithms” by R. Sedgewick, Addison-Wesley, p 252.
Fiala, E.R., and Greene, D.H., “Data Compression with Finite Windows”, Comm. ACM, 32,4 (1989) p. 490-595
zlib.h — interface of the ‘zlib’ general purpose compression library version 1.3, August 18th, 2023 Copyright (C) 1995-2023 Jean-loup Gailly and Mark Adler
This software is provided ‘as-is’, without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
Jean-loup Gailly jloup@gzip.org and Mark Adler madler@alumni.caltech.edu
The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
The CDF team greatly appreciates the efforts from Mr. Mark Nelson for his book “The Data Compression Book.” published by M&T Books in 1992 with no copyright being claimed. The Huffman code and Adaptive Huffman code used in cdfhuff.c are slightly modified from pages 64-78 and 109-121 in the book, respectively to work with the existing CDF library code.