This repository has been archived by the owner on Jun 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Julian Seward
committed
Dec 19, 2006
1 parent
7197f09
commit 1bd4465
Showing
39 changed files
with
1,375 additions
and
1,804 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
------------------------------------------------------------------ | ||
This file is part of bzip2/libbzip2, a program and library for | ||
lossless, block-sorting data compression. | ||
|
||
bzip2/libbzip2 version 1.0.4 of 20 December 2006 | ||
Copyright (C) 1996-2006 Julian Seward <[email protected]> | ||
|
||
Please read the WARNING, DISCLAIMER and PATENTS sections in the | ||
README file. | ||
|
||
This program is released under the terms of the license contained | ||
in the file LICENSE. | ||
------------------------------------------------------------------ | ||
|
||
|
||
0.9.0 | ||
|
@@ -261,7 +274,7 @@ Fixes some minor bugs since the last version, 1.0.2. | |
decompressor to crash, loop or access memory which does not | ||
belong to it. If you are using bzip2 or the library to | ||
decompress bitstreams from untrusted sources, an upgrade | ||
to 1.0.3 is recommended. | ||
to 1.0.3 is recommended. This fixes CAN-2005-1260. | ||
|
||
* The documentation has been converted to XML, from which html | ||
and pdf can be derived. | ||
|
@@ -273,3 +286,29 @@ Fixes some minor bugs since the last version, 1.0.2. | |
|
||
* The BZ_NO_STDIO cpp symbol was not properly observed in 1.0.2. | ||
This has been fixed. | ||
|
||
|
||
1.0.4 (20 Dec 06) | ||
~~~~~~~~~~~~~~~~~ | ||
Fixes some minor bugs since the last version, 1.0.3. | ||
|
||
* Fix file permissions race problem (CAN-2005-0953). | ||
|
||
* Avoid possible segfault in BZ2_bzclose. From Coverity's NetBSD | ||
scan. | ||
|
||
* 'const'/prototype cleanups in the C code. | ||
|
||
* Change default install location to /usr/local, and handle multiple | ||
'make install's without error. | ||
|
||
* Sanitise file names more carefully in bzgrep. Fixes CAN-2005-0758 | ||
to the extent that applies to bzgrep. | ||
|
||
* Use 'mktemp' rather than 'tempfile' in bzdiff. | ||
|
||
* Tighten up a couple of assertions in blocksort.c following automated | ||
analysis. | ||
|
||
* Fix minor doc/comment bugs. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
# ------------------------------------------------------------------ | ||
# This file is part of bzip2/libbzip2, a program and library for | ||
# lossless, block-sorting data compression. | ||
# | ||
# bzip2/libbzip2 version 1.0.4 of 20 December 2006 | ||
# Copyright (C) 1996-2006 Julian Seward <[email protected]> | ||
# | ||
# Please read the WARNING, DISCLAIMER and PATENTS sections in the | ||
# README file. | ||
# | ||
# This program is released under the terms of the license contained | ||
# in the file LICENSE. | ||
# ------------------------------------------------------------------ | ||
|
||
SHELL=/bin/sh | ||
|
||
|
@@ -8,10 +21,10 @@ RANLIB=ranlib | |
LDFLAGS= | ||
|
||
BIGFILES=-D_FILE_OFFSET_BITS=64 | ||
CFLAGS=-Wall -Winline -O -g $(BIGFILES) | ||
CFLAGS=-Wall -Winline -O2 -g $(BIGFILES) | ||
|
||
# Where you want it installed when you do 'make install' | ||
PREFIX=/usr | ||
PREFIX=/usr/local | ||
|
||
|
||
OBJS= blocksort.o \ | ||
|
@@ -77,14 +90,14 @@ install: bzip2 bzip2recover | |
cp -f libbz2.a $(PREFIX)/lib | ||
chmod a+r $(PREFIX)/lib/libbz2.a | ||
cp -f bzgrep $(PREFIX)/bin/bzgrep | ||
ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep | ||
ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep | ||
ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep | ||
ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep | ||
chmod a+x $(PREFIX)/bin/bzgrep | ||
cp -f bzmore $(PREFIX)/bin/bzmore | ||
ln $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless | ||
ln -s -f $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless | ||
chmod a+x $(PREFIX)/bin/bzmore | ||
cp -f bzdiff $(PREFIX)/bin/bzdiff | ||
ln $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp | ||
ln -s -f $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp | ||
chmod a+x $(PREFIX)/bin/bzdiff | ||
cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1 | ||
chmod a+r $(PREFIX)/man/man1/bzgrep.1 | ||
|
@@ -124,10 +137,10 @@ bzip2recover.o: bzip2recover.c | |
distclean: clean | ||
rm -f manual.ps manual.html manual.pdf | ||
|
||
DISTNAME=bzip2-1.0.3 | ||
DISTNAME=bzip2-1.0.4 | ||
dist: check manual | ||
rm -f $(DISTNAME) | ||
ln -sf . $(DISTNAME) | ||
ln -s -f . $(DISTNAME) | ||
tar cvf $(DISTNAME).tar \ | ||
$(DISTNAME)/blocksort.c \ | ||
$(DISTNAME)/huffman.c \ | ||
|
@@ -167,7 +180,6 @@ dist: check manual | |
$(DISTNAME)/libbz2.dsp \ | ||
$(DISTNAME)/dlltest.dsp \ | ||
$(DISTNAME)/makefile.msc \ | ||
$(DISTNAME)/Y2K_INFO \ | ||
$(DISTNAME)/unzcrash.c \ | ||
$(DISTNAME)/spewG.c \ | ||
$(DISTNAME)/mk251.c \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,30 @@ | ||
|
||
# This Makefile builds a shared version of the library, | ||
# libbz2.so.1.0.3, with soname libbz2.so.1.0, | ||
# libbz2.so.1.0.4, with soname libbz2.so.1.0, | ||
# at least on x86-Linux (RedHat 7.2), | ||
# with gcc-2.96 20000731 (Red Hat Linux 7.1 2.96-98). | ||
# Please see the README file for some | ||
# important info about building the library like this. | ||
# Please see the README file for some important info | ||
# about building the library like this. | ||
|
||
# ------------------------------------------------------------------ | ||
# This file is part of bzip2/libbzip2, a program and library for | ||
# lossless, block-sorting data compression. | ||
# | ||
# bzip2/libbzip2 version 1.0.4 of 20 December 2006 | ||
# Copyright (C) 1996-2006 Julian Seward <[email protected]> | ||
# | ||
# Please read the WARNING, DISCLAIMER and PATENTS sections in the | ||
# README file. | ||
# | ||
# This program is released under the terms of the license contained | ||
# in the file LICENSE. | ||
# ------------------------------------------------------------------ | ||
|
||
|
||
SHELL=/bin/sh | ||
CC=gcc | ||
BIGFILES=-D_FILE_OFFSET_BITS=64 | ||
CFLAGS=-fpic -fPIC -Wall -Winline -O -g | ||
CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES) | ||
|
||
OBJS= blocksort.o \ | ||
huffman.o \ | ||
|
@@ -20,13 +35,13 @@ OBJS= blocksort.o \ | |
bzlib.o | ||
|
||
all: $(OBJS) | ||
$(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.3 $(OBJS) | ||
$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.3 | ||
$(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.4 $(OBJS) | ||
$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.4 | ||
rm -f libbz2.so.1.0 | ||
ln -s libbz2.so.1.0.3 libbz2.so.1.0 | ||
ln -s libbz2.so.1.0.4 libbz2.so.1.0 | ||
|
||
clean: | ||
rm -f $(OBJS) bzip2.o libbz2.so.1.0.3 libbz2.so.1.0 bzip2-shared | ||
rm -f $(OBJS) bzip2.o libbz2.so.1.0.4 libbz2.so.1.0 bzip2-shared | ||
|
||
blocksort.o: blocksort.c | ||
$(CC) $(CFLAGS) -c blocksort.c | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,48 @@ | ||
|
||
This is the README for bzip2, a block-sorting file compressor, version | ||
1.0.3. This version is fully compatible with the previous public | ||
releases, versions 0.1pl2, 0.9.0, 0.9.5, 1.0.0, 1.0.1 and 1.0.2. | ||
This is the README for bzip2/libzip2. | ||
This version is fully compatible with the previous public releases. | ||
|
||
bzip2-1.0.3 is distributed under a BSD-style license. For details, | ||
see the file LICENSE. | ||
------------------------------------------------------------------ | ||
This file is part of bzip2/libbzip2, a program and library for | ||
lossless, block-sorting data compression. | ||
|
||
bzip2/libbzip2 version 1.0.4 of 20 December 2006 | ||
Copyright (C) 1996-2006 Julian Seward <[email protected]> | ||
|
||
Please read the WARNING, DISCLAIMER and PATENTS sections in this file. | ||
|
||
This program is released under the terms of the license contained | ||
in the file LICENSE. | ||
------------------------------------------------------------------ | ||
|
||
Complete documentation is available in Postscript form (manual.ps), | ||
PDF (manual.pdf) or html (manual.html). A plain-text version of the | ||
manual page is available as bzip2.txt. A statement about Y2K issues | ||
is now included in the file Y2K_INFO. | ||
manual page is available as bzip2.txt. | ||
|
||
|
||
HOW TO BUILD -- UNIX | ||
|
||
Type `make'. This builds the library libbz2.a and then the | ||
programs bzip2 and bzip2recover. Six self-tests are run. | ||
If the self-tests complete ok, carry on to installation: | ||
Type 'make'. This builds the library libbz2.a and then the programs | ||
bzip2 and bzip2recover. Six self-tests are run. If the self-tests | ||
complete ok, carry on to installation: | ||
|
||
To install in /usr/local/bin, /usr/local/lib, /usr/local/man and | ||
/usr/local/include, type | ||
|
||
To install in /usr/bin, /usr/lib, /usr/man and /usr/include, type | ||
make install | ||
To install somewhere else, eg, /xxx/yyy/{bin,lib,man,include}, type | ||
|
||
To install somewhere else, eg, /xxx/yyy/{bin,lib,man,include}, type | ||
|
||
make install PREFIX=/xxx/yyy | ||
|
||
If you are (justifiably) paranoid and want to see what 'make install' | ||
is going to do, you can first do | ||
|
||
make -n install or | ||
make -n install PREFIX=/xxx/yyy respectively. | ||
The -n instructs make to show the commands it would execute, but | ||
not actually execute them. | ||
|
||
The -n instructs make to show the commands it would execute, but not | ||
actually execute them. | ||
|
||
|
||
HOW TO BUILD -- UNIX, shared library libbz2.so. | ||
|
@@ -49,23 +64,25 @@ Important note for people upgrading .so's from 0.9.0/0.9.5 to version | |
bzCompress to BZ2_bzCompress, to avoid namespace pollution. | ||
Unfortunately this means that the libbz2.so created by | ||
Makefile-libbz2_so will not work with any program which used an older | ||
version of the library. Sorry. I do encourage library clients to | ||
make the effort to upgrade to use version 1.0, since it is both faster | ||
and more robust than previous versions. | ||
version of the library. I do encourage library clients to make the | ||
effort to upgrade to use version 1.0, since it is both faster and more | ||
robust than previous versions. | ||
|
||
|
||
HOW TO BUILD -- Windows 95, NT, DOS, Mac, etc. | ||
|
||
It's difficult for me to support compilation on all these platforms. | ||
My approach is to collect binaries for these platforms, and put them | ||
on the master web page (http://sources.redhat.com/bzip2). Look there. | ||
However (FWIW), bzip2-1.0.X is very standard ANSI C and should compile | ||
on the master web site (http://www.bzip.org). Look there. However | ||
(FWIW), bzip2-1.0.X is very standard ANSI C and should compile | ||
unmodified with MS Visual C. If you have difficulties building, you | ||
might want to read README.COMPILATION.PROBLEMS. | ||
|
||
At least using MS Visual C++ 6, you can build from the unmodified | ||
sources by issuing, in a command shell: | ||
|
||
nmake -f makefile.msc | ||
|
||
(you may need to first run the MSVC-provided script VCVARS32.BAT | ||
so as to set up paths to the MSVC tools correctly). | ||
|
||
|
@@ -86,18 +103,19 @@ Please read and be aware of the following: | |
|
||
WARNING: | ||
|
||
This program (attempts to) compress data by performing several | ||
non-trivial transformations on it. Unless you are 100% familiar | ||
with *all* the algorithms contained herein, and with the | ||
consequences of modifying them, you should NOT meddle with the | ||
compression or decompression machinery. Incorrect changes can and | ||
very likely *will* lead to disastrous loss of data. | ||
This program and library (attempts to) compress data by | ||
performing several non-trivial transformations on it. | ||
Unless you are 100% familiar with *all* the algorithms | ||
contained herein, and with the consequences of modifying them, | ||
you should NOT meddle with the compression or decompression | ||
machinery. Incorrect changes can and very likely *will* | ||
lead to disastrous loss of data. | ||
|
||
|
||
DISCLAIMER: | ||
|
||
I TAKE NO RESPONSIBILITY FOR ANY LOSS OF DATA ARISING FROM THE | ||
USE OF THIS PROGRAM, HOWSOEVER CAUSED. | ||
USE OF THIS PROGRAM/LIBRARY, HOWSOEVER CAUSED. | ||
|
||
Every compression of a file implies an assumption that the | ||
compressed file can be decompressed to reproduce the original. | ||
|
@@ -110,19 +128,18 @@ DISCLAIMER: | |
PROGRAM UNLESS YOU ARE PREPARED TO ACCEPT THE POSSIBILITY, HOWEVER | ||
SMALL, THAT THE DATA WILL NOT BE RECOVERABLE. | ||
|
||
That is not to say this program is inherently unreliable. Indeed, | ||
I very much hope the opposite is true. bzip2 has been carefully | ||
constructed and extensively tested. | ||
That is not to say this program is inherently unreliable. | ||
Indeed, I very much hope the opposite is true. bzip2/libbzip2 | ||
has been carefully constructed and extensively tested. | ||
|
||
|
||
PATENTS: | ||
|
||
To the best of my knowledge, bzip2 does not use any patented | ||
algorithms. However, I do not have the resources to carry out | ||
a patent search. Therefore I cannot give any guarantee of the | ||
above statement. | ||
To the best of my knowledge, bzip2/libbzip2 does not use any | ||
patented algorithms. However, I do not have the resources | ||
to carry out a patent search. Therefore I cannot give any | ||
guarantee of the above statement. | ||
|
||
End of legalities. | ||
|
||
|
||
WHAT'S NEW IN 0.9.0 (as compared to 0.1pl2) ? | ||
|
@@ -156,21 +173,23 @@ WHAT'S NEW IN 1.0.3 ? | |
|
||
See the CHANGES file. | ||
|
||
WHAT'S NEW IN 1.0.4 ? | ||
|
||
See the CHANGES file. | ||
|
||
|
||
I hope you find bzip2 useful. Feel free to contact me at | ||
[email protected] | ||
if you have any suggestions or queries. Many people mailed me with | ||
comments, suggestions and patches after the releases of bzip-0.15, | ||
bzip-0.21, and bzip2 versions 0.1pl2, 0.9.0, 0.9.5, 1.0.0, 1.0.1 and | ||
1.0.2, and the changes in bzip2 are largely a result of this feedback. | ||
I thank you for your comments. | ||
bzip-0.21, and bzip2 versions 0.1pl2, 0.9.0, 0.9.5, 1.0.0, 1.0.1, | ||
1.0.2 and 1.0.3, and the changes in bzip2 are largely a result of this | ||
feedback. I thank you for your comments. | ||
|
||
At least for the time being, bzip2's "home" is (or can be reached via) | ||
http://www.bzip.org | ||
bzip2's "home" is http://www.bzip.org/ | ||
|
||
Julian Seward | ||
[email protected] | ||
|
||
Cambridge, UK. | ||
|
||
18 July 1996 (version 0.15) | ||
|
@@ -183,3 +202,4 @@ Cambridge, UK. | |
5 May 2000 (bzip2, version 1.0pre8) | ||
30 December 2001 (bzip2, version 1.0.2pre1) | ||
15 February 2005 (bzip2, version 1.0.3) | ||
20 December 2006 (bzip2, version 1.0.4) |
Oops, something went wrong.